Re: Desktop links for command-line apps?
"GROG! (Jeff Howie)" <[email protected]>
| Newsgroups | gmane.comp.handhelds.gpe |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 24, 2006 at 05:29:16PM -0400, David Nordstedt wrote:
>I've been searching around quite a bit the past few days looking for
>info on creating GPE desktop links. I can create a new file in
>/usr/share/applications and the new icon shows up on the desktop.
>Can I get a terminal window to pop up with the command running so I
>can control the app? For example, mplayer needs to be able to accept
>commands for pause, stop, ff, etc from the keyboard.
>
>Here's the file I created:
>
>[Desktop Entry]
>Encoding=UTF-8
>Name=MP3 File
>Comment=Media Clip Link
>Exec=mplayer -ac mad /home/root/media/my.mp3
>Icon=myicon.png
>Terminal=true
>Type=Application
>Categories=Application;Network;
Put the mplayer command into a script in your PATH (I'd suggest
/usr/local/bin, you might have to create it), make sure it's
executable (chmod 755 mplayer.sh):
#!/bin/sh
mplayer -ac mad /home/root/media/my.mp3
And then change the exec line:
Exec=rxvt -e mplayer.sh
enjoy
--
GROG! \|/ In order to make an apple pie from scratch, you
thks @ @ must first create the universe. -- Carl Sagan,
--oOO-(_)-OOo-- Cosmos