Skip to content

Commit 1789d59

Browse files
committed
gnomeExtensions.easyeffects-preset-selector: patch EasyEffects schema source
1 parent dbb3ffd commit 1789d59

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

Diff for: pkgs/desktops/gnome/extensions/extensionOverrides.nix

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{ lib
22
, ddcutil
3+
, easyeffects
34
, gjs
5+
, glib
46
, gnome
57
, gobject-introspection
68
, gsound
79
, hddtemp
810
, libgda
11+
, libgtop
912
, liquidctl
1013
, lm_sensors
1114
, netcat-gnu
1215
, nvme-cli
1316
, procps
1417
, pulseaudio
15-
, libgtop
1618
, python3
1719
, smartmontools
1820
, substituteAll
@@ -61,6 +63,16 @@ super: lib.trivial.pipe super [
6163
'';
6264
}))
6365

66+
(patchExtension "[email protected]" (old: {
67+
patches = [
68+
# Needed to find the currently set preset
69+
(substituteAll {
70+
src = ./extensionOverridesPatches/eepresetselector_at_ulville.github.io.patch;
71+
easyeffects_gsettings_path = "${glib.getSchemaPath easyeffects}";
72+
})
73+
];
74+
}))
75+
6476
(patchExtension "freon@UshakovVasilii_Github.yahoo.com" (old: {
6577
patches = [
6678
(substituteAll {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--- a/extension.js
2+
+++ b/extension.js
3+
@@ -339,9 +339,9 @@ const EEPSIndicator = GObject.registerClass(
4+
_lastUsedInputPreset = _idata.trim().slice(1, -1);
5+
} else if (appType === 'native') {
6+
// Get last used presets
7+
- const settings = new Gio.Settings({
8+
- schema_id: 'com.github.wwmm.easyeffects',
9+
- });
10+
+ const _schema_source = Gio.SettingsSchemaSource.new_from_directory('@easyeffects_gsettings_path@', Gio.SettingsSchemaSource.get_default(), true);
11+
+ const _schema = _schema_source.lookup('com.github.wwmm.easyeffects', false);
12+
+ const settings = new Gio.Settings({settings_schema: _schema});
13+
_lastUsedOutputPreset = settings.get_string(
14+
'last-used-output-preset'
15+
);

0 commit comments

Comments
 (0)