[ShellGlobal] Change location for user files to XDG_DATA_HOME
While the extension system already uses an XDG location (XDG_CONFIG_HOME), other components use the deprecated $HOME/.gnome2 directory. Replace both with XDG_DATA_HOME - the existing data (app usage stats, looking glass history and extensions) is not migrated to the new location. https://bugzilla.gnome.org/show_bug.cgi?id=617555
This commit is contained in:
@ -119,8 +119,7 @@ function loadExtension(dir, enabled, type) {
|
||||
}
|
||||
|
||||
function init() {
|
||||
let userConfigPath = GLib.get_user_config_dir();
|
||||
let userExtensionsPath = GLib.build_filenamev([userConfigPath, 'gnome-shell', 'extensions']);
|
||||
let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']);
|
||||
userExtensionsDir = Gio.file_new_for_path(userExtensionsPath);
|
||||
try {
|
||||
userExtensionsDir.make_directory_with_parents(null);
|
||||
|
Reference in New Issue
Block a user