2021-03-21 21:59:00 +00:00
|
|
|
diff --git a/nautilus_open_any_terminal/open_any_terminal_extension.py b/nautilus_open_any_terminal/open_any_terminal_extension.py
|
|
|
|
index b02a995..a616399 100644
|
|
|
|
--- a/nautilus_open_any_terminal/open_any_terminal_extension.py
|
|
|
|
+++ b/nautilus_open_any_terminal/open_any_terminal_extension.py
|
2022-10-02 16:32:17 +00:00
|
|
|
@@ -205,9 +205,10 @@ def set_terminal_args(*args):
|
2021-03-21 21:59:00 +00:00
|
|
|
|
2022-10-02 16:32:17 +00:00
|
|
|
class OpenAnyTerminalShortcutProvider(GObject.GObject, Nautilus.LocationWidgetProvider):
|
|
|
|
def __init__(self):
|
|
|
|
- source = Gio.SettingsSchemaSource.get_default()
|
|
|
|
- if source.lookup(GSETTINGS_PATH, True):
|
|
|
|
- self._gsettings = Gio.Settings.new(GSETTINGS_PATH)
|
|
|
|
+ source = Gio.SettingsSchemaSource.new_from_directory("@gsettings_path@", Gio.SettingsSchemaSource.get_default(), True)
|
|
|
|
+ if True:
|
|
|
|
+ _schema = source.lookup(GSETTINGS_PATH, False)
|
|
|
|
+ self._gsettings = Gio.Settings.new_full(_schema, None, None);
|
|
|
|
self._gsettings.connect("changed", self._bind_shortcut)
|
|
|
|
self._create_accel_group()
|
|
|
|
self._window = None
|
2021-03-21 21:59:00 +00:00
|
|
|
@@ -232,9 +233,10 @@ class OpenAnyTerminalExtension(GObject.GObject, Nautilus.MenuProvider):
|
|
|
|
return items
|
|
|
|
|
|
|
|
|
|
|
|
-source = Gio.SettingsSchemaSource.get_default()
|
|
|
|
-if source is not None and source.lookup(GSETTINGS_PATH, True):
|
|
|
|
- _gsettings = Gio.Settings.new(GSETTINGS_PATH)
|
|
|
|
+source = Gio.SettingsSchemaSource.new_from_directory("@gsettings_path@", Gio.SettingsSchemaSource.get_default(), True)
|
|
|
|
+if True:
|
|
|
|
+ _schema = source.lookup(GSETTINGS_PATH, False)
|
|
|
|
+ _gsettings = Gio.Settings.new_full(_schema, None, None);
|
|
|
|
_gsettings.connect("changed", set_terminal_args)
|
2022-10-02 16:32:17 +00:00
|
|
|
set_terminal_args()
|