feat: xdg-open -> app2unit

real
This commit is contained in:
2 * r + 2 * t
2025-04-04 18:25:37 +11:00
parent ad791dfd76
commit 0d0fc1657a
+2 -2
View File
@@ -78,10 +78,10 @@ if pgrep wf-recorder > /dev/null
switch $action switch $action
case 'watch' case 'watch'
xdg-open $new_recording_path app2unit -O $new_recording_path
case 'open' case 'open'
dbus-send --session --dest=org.freedesktop.FileManager1 --type=method_call /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file://$new_recording_path" string:'' \ dbus-send --session --dest=org.freedesktop.FileManager1 --type=method_call /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file://$new_recording_path" string:'' \
|| xdg-open (dirname $new_recording_path) || app2unit -O (dirname $new_recording_path)
case 'save' case 'save'
set -l save_file (app2unit -- zenity --file-selection --save --title='Save As') set -l save_file (app2unit -- zenity --file-selection --save --title='Save As')
test -n "$save_file" && mv $new_recording_path $save_file || warn 'No file selected' test -n "$save_file" && mv $new_recording_path $save_file || warn 'No file selected'