LinuxQuestions.org
Visit Jeremy's Blog.
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 09-14-2011, 09:40 PM   #1
firefiber
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Question How to put an icon/shortcut on the desktop for a custom application?


I'm totally new to Linux, so sorry if this has been asked before. I did search though. And found nothing, so I guess I've made a new level of noob, eh?

I'm currently using Ubuntu 11.10.

Anyway. I downloaded a tar.bz2 Skype, instead of the .deb package, because I wanted to learn how to install it from that, instead of just double clicking and letting the package manger handle everything.

However, once I extract it, and cd into the extracted folder, there's nothing to make. It runs right out of the folder, if I type in skype in the terminal. I moved the folder into /usr/lib and made a symlink of skype.sh in /bin. So now when I type Skype anywhere, it'll open up.

My question is, how do I add a shortcut to the desktop (or the Unity Launcher), with the Skype icon? The icons folder exists in the extracted folder, but I don't know how to use them. And what exactly can I do with the skype.desktop file? What does it do?

This goes for firefox too. I downloaded the tar.bz2 Aurora. I extract it, there's nothing to install. So I move it to /usr/lib and symlink firefox.sh to /bin. What to do after that? I don't want to have to go to the terminal everytime I want to launch something.
 
Old 09-14-2011, 11:51 PM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
Right click on a free spot on the desktop.

You should have create launcher...

If you right click on your shortcut, then you should be able to tell it where the icon is.
 
Old 09-15-2011, 12:26 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,952

Rep: Reputation: Disabled
Quote:
Originally Posted by firefiber View Post
I moved the folder into /usr/lib and made a symlink of skype.sh in /bin. So now when I type Skype anywhere, it'll open up.
Just a quick suggestion. You might want to move the skype folder into /opt or /usr/local/lib. That might save you some grief some time later.
ciao,
jdk
 
Old 09-15-2011, 02:54 AM   #4
samtoddler
Member
 
Registered: Jul 2011
Location: Delhi
Distribution: Cent OS/RHEL
Posts: 37

Rep: Reputation: Disabled
How to put an icon/shortcut on the desktop for a custom application?

Hi,

You can also try this one
create a file "anything.desktop"
and then add the following lines to it

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=<make it on |off whether you want to execute it in the terminal or not>
Name[en_IN]=<name of shortcut>
Exec=<put here the app name>
Comment=<here goes the comments regarding the shortcut>
#standard location for the icons in ubuntu is "/usr/share/icons/hicolor/scalable/apps"
Icon=<here goes the app icon>

the above file contents are created after you have created the launcher of an application.

regards
samtoddler
 
Old 09-17-2011, 04:15 AM   #5
firefiber
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks for the really quick replies, folks! I wasn't able to reply myself, 'cause I was messing about in Gentoo and screwed something up quite badly. Anywho, I've tried everything, and it works. Thanks a lot! It was really simple though, now that I look at it, and I feel incredibly stupid. :\

A question to jdkaye: why put it in /opt or /usr/local/lib? I'm still trying to understand the folder structure and naming scheme on this thing, so I'm a wee bit confused. I thought /usr/bin and /usr/lib was to be used for the apps that I've installed myself? No?

Thanks again!
 
Old 09-17-2011, 04:40 AM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,952

Rep: Reputation: Disabled
Quote:
Originally Posted by firefiber View Post
A question to jdkaye: why put it in /opt or /usr/local/lib? I'm still trying to understand the folder structure and naming scheme on this thing, so I'm a wee bit confused. I thought /usr/bin and /usr/lib was to be used for the apps that I've installed myself? No?

Thanks again!
This comes under the "ounce of prevention" category. It makes it easier to quickly identify what is unique to your own system and hence what needs backing up or cloning onto a new system. The standard issue packages that you get from your distro's repos don't need backing up. You can also make a list of your installed packages so you can always get them again if need be. What is unique in your system is harder to replace if you don't remember what it is. Keeping those type of things in /usr/local (for things you compile yourself or packages you make yourself) and /opt (for software binaries you download as tarballs directly from their site) makes your life easier in the long run.
Hope that's clear.
ciao,
jdk

Last edited by jdkaye; 09-17-2011 at 04:41 AM.
 
  


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
[SOLVED] How to create a shortcut of a application with a icon using command line in RHEL linux4santosh Linux - Desktop 3 04-08-2011 02:56 AM
Creating desktop icon shortcut using gnome emp1953 Linux - Newbie 6 11-13-2008 12:47 PM
Gnome - how to remove shortcut link icon from desktop ncbillp Linux - Desktop 3 05-01-2007 10:51 AM
How can I change the icon of a desktop shortcut nightrider Linux - Newbie 1 06-15-2006 08:30 PM
desktop icon or menu shortcut for phoenix? romcgill Linux - General 4 05-25-2003 09:28 PM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration