403Webshell
Server IP : 172.67.191.97  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gnome-shell/extensions/[email protected]/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gnome-shell/extensions/[email protected]/app/notifyX11UnderWayland.js
/* DING: Desktop Icons New Generation for GNOME Shell
 *
 * Copyright (C) 2019 Sergio Costas ([email protected])
 * Based on code original (C) Carlos Soriano
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/* exported NotifyX11UnderWayland */
'use strict';
const Gtk = imports.gi.Gtk;
const Gettext = imports.gettext.domain('ding');

const _ = Gettext.gettext;

var NotifyX11UnderWayland = class {
    constructor(closeCB) {
        this._window = new Gtk.MessageDialog({
            window_position: Gtk.WindowPosition.CENTER_ON_PARENT,
            transient_for: null,
            message_type: Gtk.MessageType.WARNING,
            buttons: Gtk.ButtonsType.NONE,
        });
        let area = this._window.get_message_area();
        let labels = area.get_children();
        labels[1].set_justify(Gtk.Justification.CENTER);
        this._window.secondary_use_markup = true;
        this._window.text = _('Desktop Icons NG is running under X11Wayland');
        this._window.secondary_text = _("It seems that you have your system configured to force GTK to use X11. This works, but it's suboptimal. You should check your system configuration to fix this.");
        this.deleteButton = this._window.add_button(_('Close'), Gtk.ResponseType.OK);
        this.deleteButton.connect('clicked', () => {
            this._destroy(closeCB);
        });
        this._window.connect('delete-event', () => {
            this._destroy(closeCB);
        });
        this.deleteButton.get_style_context().add_class('suggested-action');
        this._stopShowing = new Gtk.CheckButton({label: _("Don't show this message anymore.")});
        area.add(this._stopShowing);
        this._window.show_all();
    }

    _destroy(closeCB) {
        this._window.hide();
        this._window.destroy();
        this._window = null;
        closeCB(this._stopShowing.active);
    }
};

Youez - 2016 - github.com/yon3zu
LinuXploit