mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
extensionPrefs: Delete disabled warning marker
It isn't possible to easily delete the marker from an XDG autostart file, so make it on startup to simplify that. This is in preparation for the next commit which adds the appropriate autostart file. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/695
This commit is contained in:
parent
d9775e41b2
commit
9a49b20fac
1 changed files with 7 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ const _ = Gettext.gettext;
|
|||
|
||||
const Config = imports.misc.config;
|
||||
const ExtensionUtils = imports.misc.extensionUtils;
|
||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||
const { loadInterfaceXML, deleteGFile } = imports.misc.fileUtils;
|
||||
|
||||
const { ExtensionState } = ExtensionUtils;
|
||||
|
||||
|
|
@ -366,6 +366,12 @@ var Application = GObject.registerClass({
|
|||
this.quit();
|
||||
|
||||
this.disabledInfobar.set_revealed(true);
|
||||
|
||||
let file = GLib.build_filenamev ([GLib.get_user_config_dir(), 'gnome-shell-extensions-disabled-warning']);
|
||||
let gfile = Gio.File.new_for_path(file);
|
||||
if (gfile.query_exists(null))
|
||||
deleteGFile(gfile);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue