LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2013, 02:39 PM   #1
wsurfer0
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Rep: Reputation: Disabled
Create desktop shortcut for alsamixer?


Hellos there,

I am trying to create a desktop shortcut for alsamixer so I don't have to open konsole and type alsamixer every time.

I've tried:
1. right-clicking on the desktop > Create new > Link to application - no luck
2. ln -s /usr/bin/alsamixer /root/Desktop/alsamixer - no luck

The problem is that even when I go to /usr/bin and click on 'alsamixer' notning happens. The only way to start it is to type 'alsamixer in the konsole.

Please help (Slax 12, KDE). Thanks in advance
 
Old 10-06-2013, 02:57 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You have to start konsole and tell it to run alsamixer in it:
Code:
konsole -e alsamixer
If you create a shortcut to that command it will work.
 
1 members found this post helpful.
Old 10-06-2013, 03:15 PM   #3
wsurfer0
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you! Could you just please explain how to create a shortcut for a command? I didn't even know you could do that
 
Old 10-06-2013, 03:49 PM   #4
01micko
Member
 
Registered: Mar 2009
Location: Gold Coast, Queensland, Australia
Distribution: Slackware
Posts: 97

Rep: Reputation: 22
Take a look at some of the DOT desktop files in /usr/share/applications/ directory. Copy a simple one to your home and modify it until you are satisfied or make a file and brew your own. Change the Exec= to whatever command works for you, (TobiSGD's example should work but I would add the full path). Change the other entries to suit yourself, Icon= and so on. Change the name of it to "alsamixer" (or whatever you want; the .desktop extension is not required). When done, drag it to the desktop.

Have fun with that!

Last edited by 01micko; 10-06-2013 at 03:51 PM.
 
Old 10-06-2013, 08:38 PM   #5
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,201

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by wsurfer0 View Post
...
1. right-clicking on the desktop > Create new > Link to application - no luck
...
... > Link to application -> Advanced -> Run in terminal
 
Old 10-07-2013, 01:23 AM   #6
wsurfer0
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks guanx, that works perfectly! (Just in case somebody needs this in the future, the steps are:

right-click on desktop > Create new > Link to application > write name (Alsamixer) in General tab > open Application tab, write 'alsamixer' in Command field > click on Advanced options > check Run in terminal

@ 01micko- thanks for the advice, will give it a shot when I catch a moment
 
  


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
how to create a desktop url shortcut craftereric Linux - Newbie 5 11-16-2010 05:08 PM
Create shortcut for Bookmarks (Firefox) to Desktop Ineed2know Linux - Desktop 2 03-01-2010 09:49 PM
How do I create a shortcut of my windows files on the desktop? caa1980 Linux Mint 1 07-24-2009 05:05 AM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
How to create a desktop shortcut ? juanb Linux - General 1 07-01-2004 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:57 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
Open Source Consulting | Domain Registration