nixpkgs/pkgs/desktops/gnome-3/extensions/sound-output-device-chooser/fix-paths.patch

27 lines
1.2 KiB
Diff

diff --git a/sound-output-device-chooser@kgshank.net/convenience.js b/sound-output-device-chooser@kgshank.net/convenience.js
index 54ad06f..0860531 100644
--- a/sound-output-device-chooser@kgshank.net/convenience.js
+++ b/sound-output-device-chooser@kgshank.net/convenience.js
@@ -129,7 +129,7 @@ function refreshCards() {
if(_settings.get_boolean(Prefs.NEW_PROFILE_ID)) {
_log("New logic");
let pyLocation = Me.dir.get_child('utils/pa_helper.py').get_path();
- let pythonExec = 'python';
+ let pythonExec = '@python@';
let pyVer = 3;
while(!isCmdFound(pythonExec) && pyVer >=2){
_log(pythonExec + " is not found. Try next");
diff --git a/sound-output-device-chooser@kgshank.net/utils/libpulse_introspect.py b/sound-output-device-chooser@kgshank.net/utils/libpulse_introspect.py
index c4d2484..262608d 100644
--- a/sound-output-device-chooser@kgshank.net/utils/libpulse_introspect.py
+++ b/sound-output-device-chooser@kgshank.net/utils/libpulse_introspect.py
@@ -86,7 +86,7 @@ else:
_libraries = {}
-libpulse_library_name = find_library('pulse')
+libpulse_library_name = '@libpulse@'
if libpulse_library_name is None:
raise Exception('No libpulse.so library found!')