Re: [kde] calling a shell script from a servicemenu



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, javier
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?

http://developer.kde.org/documentation/tutorials/dot/servicemenus.html

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.