LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2004, 07:21 PM   #1
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Rep: Reputation: 30
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?
 
Old 11-26-2004, 11:20 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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.............

Last edited by 320mb; 11-26-2004 at 11:25 AM.
 
Old 11-26-2004, 11:22 AM   #3
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
Thanks, it's very helpful for a newbie How can I do it?
 
Old 11-26-2004, 11:25 AM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
had to edit........
 
Old 11-26-2004, 11:26 AM   #5
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
Thanks a lot!
 
Old 11-26-2004, 11:30 AM   #6
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
some executables can't be started directly.........so using a script like
above will work better than a "link to application" shortcut
 
Old 11-26-2004, 12:15 PM   #7
benrose111488
Member
 
Registered: Jun 2004
Location: Wantage, NJ
Distribution: Fedora 7
Posts: 177

Rep: Reputation: 30
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!
 
Old 11-27-2004, 08:17 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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..
 
Old 11-28-2004, 06:37 PM   #9
benrose111488
Member
 
Registered: Jun 2004
Location: Wantage, NJ
Distribution: Fedora 7
Posts: 177

Rep: Reputation: 30
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.

Last edited by benrose111488; 11-28-2004 at 06:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop Shortcut Magic02 Linux - Newbie 1 07-03-2005 04:48 PM
desktop shortcut? Sean2 Mandriva 3 12-11-2003 09:13 PM
How to make shortcut for Gnome desktop? septanla Linux - Newbie 12 10-18-2003 04:05 AM
How to - to how to make a shortcut on desktop rberry88 Linux - Newbie 3 09-10-2003 10:20 PM
make shortcut in desktop in red hat 9 eyes_linux Linux - Newbie 6 08-03-2003 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration