Re: [kde] calling a shell script from a servicemenu
- From: javier Delgado <jd3695@xxxxxxxxx>
- Date: Wed, 26 Jul 2006 16:04:44 -0700 (PDT)
Yes, I followed Aaron's article, in fact that is my
only reference :).
I tried running directly from the shell the exact
command I had it in the .desktop file and it actually
didn't work. So I then tried it without the -c option
and it worked (in the shell). However, I then tried
putting it like that in the .desktop file but it
didn't work.
This is my entire .desktop file:
[Desktop Entry]
ServiceTypes=audio/x-mp3
Actions=Encode32;Encode64;Encode96
X-KDE-Submenu=Re-Encode
[Desktop Action Encode32]
Name=32 bit
Icon=.mp3
Exec=/bin/sh /usr/bin/reencodemp3 -- %u
[Desktop Action Encode64]
Name=64 bit
Icon=.mp3
Exec=/bin/sh -c "/usr/bin/reencodemp3 %u 64"
[Desktop Action Encode96]
Name=96 bit
Icon=.mp3
Exec=/bin/sh -c "/usr/bin/reencodemp3 %u 96"
thanks
javier
--- Peter Wiersig <peter@xxxxxxxxxxxxxxx> wrote:
On Wed, Jul 26, 2006 at 03:30:26PM -0700, javierhttp://developer.kde.org/documentation/tutorials/dot/servicemenus.html
Delgado wrote:
Thanks, but unfortunately that didn't work.
Just to be sure:
The complete line for the .desktop looked like that?
Exec=/bin/sh -c /usr/bin/reencodemp3 -- %u
Is there any way of debugging this type of thing?
No idea.
Du you know Aarons article?
I tried the following:
----------
[Desktop Entry]
ServiceTypes=audio/*
Actions=Test debug
[Desktop Action Test debug]
Name=hurz
Icon=player_play
Exec=kdialog --msgbox %u
-----------
Peter
___________________________________________________
This message is from the kde mailing list.
Account management:
https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
- References:
- Re: [kde] calling a shell script from a servicemenu
- From: Peter Wiersig
- Re: [kde] calling a shell script from a servicemenu
- Prev by Date: Re: [kde] calling a shell script from a servicemenu
- Next by Date: Re: [kde] kmail - sending profile preference
- Previous by thread: Re: [kde] calling a shell script from a servicemenu
- Next by thread: Re: [kde] calling a shell script from a servicemenu
- Index(es):