diff options
author | piegames <git@piegames.de> | 2023-05-23 20:09:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 20:09:51 +0200 |
commit | 19baa34af2dcdf390292f2d923e58b64545ca058 (patch) | |
tree | 1d3e379a3112fa1aa709505b71daee8bb0a6165a /pkgs | |
parent | 79c840ea2b7fcb805423ce41c56759adf0c1ce28 (diff) | |
parent | 1789d590623ab5e6c35b4ba40f9c9d7fb4af6659 (diff) |
Merge pull request #233642
gnomeExtensions.easyeffects-preset-selector: patch EasyEffects schema source
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/desktops/gnome/extensions/extensionOverrides.nix | 14 | ||||
-rw-r--r-- | pkgs/desktops/gnome/extensions/extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch | 15 |
2 files changed, 28 insertions, 1 deletions
diff --git a/pkgs/desktops/gnome/extensions/extensionOverrides.nix b/pkgs/desktops/gnome/extensions/extensionOverrides.nix index 81156b1a5d4ac..aba6bf6b3fc49 100644 --- a/pkgs/desktops/gnome/extensions/extensionOverrides.nix +++ b/pkgs/desktops/gnome/extensions/extensionOverrides.nix @@ -1,18 +1,20 @@ { lib , ddcutil +, easyeffects , gjs +, glib , gnome , gobject-introspection , gsound , hddtemp , libgda +, libgtop , liquidctl , lm_sensors , netcat-gnu , nvme-cli , procps , pulseaudio -, libgtop , python3 , smartmontools , substituteAll @@ -61,6 +63,16 @@ super: lib.trivial.pipe super [ ''; })) + (patchExtension "eepresetselector@ulville.github.io" (old: { + patches = [ + # Needed to find the currently set preset + (substituteAll { + src = ./extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch; + easyeffects_gsettings_path = "${glib.getSchemaPath easyeffects}"; + }) + ]; + })) + (patchExtension "freon@UshakovVasilii_Github.yahoo.com" (old: { patches = [ (substituteAll { diff --git a/pkgs/desktops/gnome/extensions/extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch b/pkgs/desktops/gnome/extensions/extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch new file mode 100644 index 0000000000000..741084bd415cc --- /dev/null +++ b/pkgs/desktops/gnome/extensions/extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch @@ -0,0 +1,15 @@ +--- a/extension.js ++++ b/extension.js +@@ -339,9 +339,9 @@ const EEPSIndicator = GObject.registerClass( + _lastUsedInputPreset = _idata.trim().slice(1, -1); + } else if (appType === 'native') { + // Get last used presets +- const settings = new Gio.Settings({ +- schema_id: 'com.github.wwmm.easyeffects', +- }); ++ const _schema_source = Gio.SettingsSchemaSource.new_from_directory('@easyeffects_gsettings_path@', Gio.SettingsSchemaSource.get_default(), true); ++ const _schema = _schema_source.lookup('com.github.wwmm.easyeffects', false); ++ const settings = new Gio.Settings({settings_schema: _schema}); + _lastUsedOutputPreset = settings.get_string( + 'last-used-output-preset' + ); |