LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make a shortcut for Mplayer on the desktop (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-shortcut-for-mplayer-on-the-desktop-259319/)

foxy123 11-25-2004 06:21 PM

How to make a shortcut for Mplayer on the desktop
 
I have installed Mplayer from SuSE and now when I type gmplayer in Application Launcher it starts without any problem. So I decided to make a shortcut on the desktop. I right-clicked Create New Link To Application and in Application Command typed 'gmplayer'. When I click the icon, it launches the player but the hour-glass keeps rotating for some time. I tried to use the path instead the command like '/usr/bin/gmplayer', but the same it takes much longer to launch mplayer than typing in command line. What do I do wrong?

320mb 11-26-2004 10:20 AM

make a $SCRIPT an put it in your ~/.home

Code:


#!/bin/bash

cd /usr/bin/gmplayer

./gmplayer

and just point the shortcut on desktop to it.............

foxy123 11-26-2004 10:22 AM

Thanks, it's very helpful for a newbie :) How can I do it?

320mb 11-26-2004 10:25 AM

had to edit........

foxy123 11-26-2004 10:26 AM

Thanks a lot!

320mb 11-26-2004 10:30 AM

some executables can't be started directly.........so using a script like
above will work better than a "link to application" shortcut

benrose111488 11-26-2004 11:15 AM

You've GOT to be kidding me

really, just make a launcher on the desktop and for the command put 'gmplayer' without the quotes

that's all!

trickykid 11-27-2004 07:17 PM

Quote:

Originally posted by 320mb
make a $SCRIPT an put it in your ~/.home

Code:


#!/bin/bash

cd /usr/bin/gmplayer

./gmplayer

and just point the shortcut on desktop to it.............

Why 'cd' and then run ./gmplayer? Why not just put the full path to launch? Or better yet, just add the directory it resides in, in the users path? Or create a symlink or alias? There are better options than just creating scripts for such tedious simple tasks like this..

benrose111488 11-28-2004 05:37 PM

adding on to trickykid's post, in the launcher, put the command

'/usr/bin/gmplayer'
or wherever the 'executable' is located

and I apologize for the above post. I never read your problem fully, only the title of the thread.


All times are GMT -5. The time now is 05:14 AM.