Skip to content
Snippets Groups Projects
Commit 4763c674 authored by Albert Gräf's avatar Albert Gräf
Browse files

Invoke desktop actions via /bin/sh.

We do this to prevent extra arguments to be passed from the DE.

At least on KDE, it seems that the desktop file itself gets passed if the
action is invoked by right-clicking the icon on the desktop (this doesn't
happen with panel icons). Maybe this is a bug in KDE, but we need to prevent
this, because otherwise Purr Data tries to open the desktop file as a patch,
which of course will cause a bunch of ugly error messages in the main window.
parent 97677f50
No related branches found
No related tags found
No related merge requests found
......@@ -11,15 +11,15 @@ MimeType=application/x-puredata;
[Desktop Action ALSA]
Name=ALSA
Exec=pd-l2ork -rt -alsa -audiobuf 20 -d 3 %U
Exec=/bin/sh -c "pd-l2ork -rt -alsa -audiobuf 20 -d 3 %U"
TargetEnvironment=Unity
[Desktop Action JACK]
Name=JACK
Exec=pd-l2ork -rt -jack -audiobuf 20 -d 3 %U
Exec=/bin/sh -c "pd-l2ork -rt -jack -audiobuf 20 -d 3 %U"
TargetEnvironment=Unity
[Desktop Action ForceQuit]
Name=Force Quit Pd-L2Ork
Exec=/usr/bin/killall pd-l2ork pd-gui
Exec=/bin/sh -c "/usr/bin/killall pd-l2ork pd-gui"
TargetEnvironment=Unity
......@@ -11,15 +11,15 @@ MimeType=application/x-puredata;
[Desktop Action ALSA]
Name=ALSA
Exec=pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 -d 3 %U
Exec=/bin/sh -c "pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 -d 3 %U"
TargetEnvironment=Unity
[Desktop Action JACK]
Name=JACK
Exec=pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 -d 3 %U
Exec=/bin/sh -c "pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 -d 3 %U"
TargetEnvironment=Unity
[Desktop Action ForceQuit]
Name=Force Quit Pd-L2Ork
Exec=/usr/bin/killall pd-l2ork pd-gui
Exec=/bin/sh -c "/usr/bin/killall pd-l2ork pd-gui"
TargetEnvironment=Unity
......@@ -11,15 +11,15 @@ MimeType=application/x-puredata;
[Desktop Action ALSA]
Name=ALSA
Exec=pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 %U
Exec=/bin/sh -c "pd-l2ork -k12 -noautopatch -rt -alsa -audiobuf 20 %U"
TargetEnvironment=Unity
[Desktop Action JACK]
Name=JACK
Exec=pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 %U
Exec=/bin/sh -c "pd-l2ork -k12 -noautopatch -rt -jack -audiobuf 20 %U"
TargetEnvironment=Unity
[Desktop Action ForceQuit]
Name=Force Quit Pd-L2Ork
Exec=/usr/bin/killall pd-l2ork pd-gui
Exec=/bin/sh -c "/usr/bin/killall pd-l2ork pd-gui"
TargetEnvironment=Unity
......@@ -11,15 +11,15 @@ MimeType=application/x-puredata;
[Desktop Action ALSA]
Name=ALSA
Exec=pd-l2ork -rt -alsa -audiobuf 20 %U
Exec=/bin/sh -c "pd-l2ork -rt -alsa -audiobuf 20 %U"
TargetEnvironment=Unity
[Desktop Action JACK]
Name=JACK
Exec=pd-l2ork -rt -jack -audiobuf 20 %U
Exec=/bin/sh -c "pd-l2ork -rt -jack -audiobuf 20 %U"
TargetEnvironment=Unity
[Desktop Action ForceQuit]
Name=Force Quit Pd-L2Ork
Exec=/usr/bin/killall pd-l2ork pd-gui
Exec=/bin/sh -c "/usr/bin/killall pd-l2ork pd-gui"
TargetEnvironment=Unity
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment