Konqueror Service menus
Kevin Krammer
kevin.krammer at gmx.at
Thu Aug 21 21:03:21 BST 2003
On Thursday 21 August 2003 21:42, Luis Neves wrote:
> Yes it works,
> I've put the following command in a shell script:
> /bin/sh -c "cd $(pwd) && unzip -o -d $(basename $1 .zip) $1"
>
> named the script "uziptest.sh" and moved it to "/usr/local/bin".
> Calling "uziptest.sh foobar.zip" works ok (provided that there is a
> "foobar.zip" file in the current directory)
>
> Funny enough the service menu with the command
> /bin/sh -c "cd %d && tar xfz %u"
> for tar-gzipped files works ok ... go figure.
>
> I'm puzzled by this... like I said this service menu worked just fine
> in 3.1.2, something must have changed or in 3.1.3 or in my environment
> that is causing this to fail, I just have no idea what.
Hmm, maybe something in the command gets replaces or changes when being
read into KDE.
Could be the $().
You could try your original lin with backticks instead of $()
Cheers,
Kevin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer at gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20030821/c76f0391/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list