Skip to content

Instantly share code, notes, and snippets.

@coldtobi
Created October 22, 2014 21:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save coldtobi/417333a01761208f5be7 to your computer and use it in GitHub Desktop.
Description: Fix locales loading when installed systemwide
Author: Tobias Frost <tobi@debian.org>
Bug: https://github.com/laserb/gnome-shell-extension-suspend-button/issues/6
Forwarded: yes
Last-Update: 2014-10-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib.js
+++ b/lib.js
@@ -18,6 +18,8 @@
const GLib = imports.gi.GLib;
const Gettext = imports.gettext;
+const Config = imports.misc.config;
+
function getSettings(extension) {
let schemaName = 'org.gnome.shell.extensions.suspend-button';
let schemaDir = extension.dir.get_child('schemas').get_path();
@@ -49,6 +51,6 @@
// Extension installed system-wide
else {
Gettext.bindtextdomain('gnome-shell-extension-suspend-button',
- extension.metadata.locale);
+ Config.LOCALEDIR);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment