2024-02-07 01:22:34 +00:00
|
|
|
diff --git a/nautilus_open_any_terminal/nautilus_open_any_terminal.py b/nautilus_open_any_terminal/nautilus_open_any_terminal.py
|
2022-02-10 20:34:41 +00:00
|
|
|
index b02a995..a616399 100644
|
2024-02-07 01:22:34 +00:00
|
|
|
--- a/nautilus_open_any_terminal/nautilus_open_any_terminal.py
|
|
|
|
+++ b/nautilus_open_any_terminal/nautilus_open_any_terminal.py
|
|
|
|
@@ -228,9 +228,10 @@ def set_terminal_args(*args):
|
|
|
|
"""Provide keyboard shortcuts for opening terminals in Nautilus."""
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
def __init__(self):
|
2024-02-07 01:22:34 +00:00
|
|
|
- gsettings_source = Gio.SettingsSchemaSource.get_default()
|
|
|
|
- if gsettings_source.lookup(GSETTINGS_PATH, True):
|
2022-10-06 18:32:54 +00:00
|
|
|
- self._gsettings = Gio.Settings.new(GSETTINGS_PATH)
|
2024-02-07 01:22:34 +00:00
|
|
|
+ gsettings_source = Gio.SettingsSchemaSource.new_from_directory("@gsettings_path@", Gio.SettingsSchemaSource.get_default(), True)
|
2022-10-06 18:32:54 +00:00
|
|
|
+ if True:
|
2024-02-07 01:22:34 +00:00
|
|
|
+ _schema = gsettings_source.lookup(GSETTINGS_PATH, False)
|
2022-10-06 18:32:54 +00:00
|
|
|
+ self._gsettings = Gio.Settings.new_full(_schema, None, None);
|
|
|
|
self._gsettings.connect("changed", self._bind_shortcut)
|
|
|
|
self._create_accel_group()
|
|
|
|
self._window = None
|
2024-02-07 01:22:34 +00:00
|
|
|
@@ -326,9 +327,10 @@ class OpenAnyTerminalExtension(GObject.GObject, Nautilus.MenuProvider):
|
2022-02-10 20:34:41 +00:00
|
|
|
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-06 18:32:54 +00:00
|
|
|
set_terminal_args()
|