at master 63 lines 2.8 kB view raw
1diff --git i/extension.js w/extension.js 2index c151057..1b6dfc3 100644 3--- i/extension.js 4+++ w/extension.js 5@@ -717,7 +717,7 @@ const EasyScreenCastIndicator = GObject.registerClass({ 6 Lib.TalkativeLog('-*-execute post command'); 7 8 // launch cmd after registration 9- const tmpCmd = `/usr/bin/sh -c "${this._settings.getOption('s', Settings.POST_CMD_SETTING_KEY)}"`; 10+ const tmpCmd = `/bin/sh -c "${this._settings.getOption('s', Settings.POST_CMD_SETTING_KEY)}"`; 11 12 const mapObj = { 13 _fpath: pathFile, 14diff --git i/prefs.js w/prefs.js 15index e0dd1a2..9dcb87a 100644 16--- i/prefs.js 17+++ w/prefs.js 18@@ -13,8 +13,8 @@ 19 'use strict'; 20 21 import GIRepository from 'gi://GIRepository'; 22-GIRepository.Repository.prepend_search_path('/usr/lib64/gnome-shell'); 23-GIRepository.Repository.prepend_library_path('/usr/lib64/gnome-shell'); 24+GIRepository.Repository.prepend_search_path('@gnomeShell@/lib/gnome-shell'); 25+GIRepository.Repository.prepend_library_path('@gnomeShell@/lib/gnome-shell'); 26 27 import Adw from 'gi://Adw'; 28 import GObject from 'gi://GObject'; 29@@ -713,7 +713,7 @@ const EasyScreenCastSettingsWidget = GObject.registerClass({ 30 Lib.TalkativeLog('-^-NOT SET xdg-user video'); 31 32 ctx.CtrlExe.Execute( 33- '/usr/bin/sh -c "echo $HOME"', 34+ '/bin/sh -c "echo $HOME"', 35 true, 36 (success, out) => { 37 Lib.TalkativeLog(`-^-CALLBACK sync S: ${success} out: ${out}`); 38@@ -883,7 +883,7 @@ const EasyScreenCastSettingsWidget = GObject.registerClass({ 39 ); 40 41 ctx.CtrlExe.Execute( 42- 'journalctl /usr/bin/gnome-shell --since "15 min ago" --output=cat --no-pager', 43+ 'journalctl @gnomeShell@/bin/.gnome-shell-wrapped --since "15 min ago" --output=cat --no-pager', 44 false, 45 success => { 46 Lib.TalkativeLog(`-^-CALLBACK async S= ${success}`); 47diff --git i/utilaudio.js w/utilaudio.js 48index b07e181..ed7d3ba 100644 49--- i/utilaudio.js 50+++ w/utilaudio.js 51@@ -14,10 +14,8 @@ 52 53 import GObject from 'gi://GObject'; 54 import GIRepository from 'gi://GIRepository'; 55-GIRepository.Repository.prepend_search_path('/usr/lib/gnome-shell'); 56-GIRepository.Repository.prepend_library_path('/usr/lib/gnome-shell'); 57-GIRepository.Repository.prepend_search_path('/usr/lib64/gnome-shell'); 58-GIRepository.Repository.prepend_library_path('/usr/lib64/gnome-shell'); 59+GIRepository.Repository.prepend_search_path('@gnomeShell@/lib/gnome-shell'); 60+GIRepository.Repository.prepend_library_path('@gnomeShell@/lib/gnome-shell'); 61 import Gvc from 'gi://Gvc'; 62 63 import * as Lib from './convenience.js';