diff --git a/js/ui/main.js b/js/ui/main.js index 2cfe941be..d86cf9e81 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -256,6 +256,14 @@ function _getStylesheet(name) { if (stylesheet.query_exists(null)) return stylesheet; + let dataDirs = GLib.get_system_data_dirs(); + for (let i = 0; i < dataDirs.length; i++) { + let path = GLib.build_filenamev([dataDirs[i], 'gnome-shell', 'theme', name]); + let stylesheet = Gio.file_new_for_path(path); + if (stylesheet.query_exists(null)) + return stylesheet; + } + stylesheet = Gio.File.new_for_path(global.datadir + '/theme/' + name); if (stylesheet.query_exists(null)) return stylesheet;