LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-07-2008, 08:05 PM   #1
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Rep: Reputation: 15
Create Gnome Desktop Icon, Program Launcher


Hi! I'm using Centos 5.0 (A Red Hat build). I am using mysqld with a GUI called Navicat. After extracting the Navicar tarball, it created two icons in a Navicat folder. One was called "Navi_Start" which launches the program. The other is an icon, a .png file. The program works fine and I have it connected to the mysqld structure. The problem is that I do not know how to copy the "Navi_Start" file to the desktop and then change the icon to the file that came in the folder, so the developer can easily launch the Navicat GUI. Any help?

Thanks!
 
Old 02-07-2008, 08:19 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by qwerty_tele View Post

The problem is that I do not know how to copy the "Navi_Start" file to the desktop and then change the icon to the file that came in the folder, so the developer can easily launch the Navicat GUI. Any help?

Thanks!
You can create a desktop icon by right clicking on a blank spot on the desktop. A menu pops up and you left click on Create New -> Link to Application. A properties window pops up. You fill out all of the slots in the properties form to create a desktop application icon. To change the icon itself click on the icon button on the General page on the Properties window. Click on other icons and browse to find the icon that you want to display on the desktop.

------------------
Steve Stites
 
Old 02-07-2008, 10:18 PM   #3
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Right on the Money!

Thanks for the help, it was right on.
 
Old 02-07-2008, 10:21 PM   #4
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Suggestions on Where to Store Programs

Navicat is the GUI front end for mysqld. The program itself is contained in one folder (unlike Windows). Any suggestions as to where I should store these "program" folders?
 
Old 02-07-2008, 11:17 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by qwerty_tele View Post
Navicat is the GUI front end for mysqld. The program itself is contained in one folder (unlike Windows). Any suggestions as to where I should store these "program" folders?
Put executable programs in a directory on your PATH. You can display your PATH with:

echo $PATH

-------------------------
Steve Stites
 
Old 02-07-2008, 11:22 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Best stored under /usr/local, which should already be on the path. Alternatively - and this would in fact be the best choice - under /opt, but you'd have to include that in your path yourself.
 
Old 02-09-2008, 07:17 AM   #7
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Path

I figured out how to manipulate the PATH. Thanks for all guidance. My next question is: If I put any executable file in my PATH, or add a folder with an executable file to my PATH, will it launch when double clicked? When I had the Navicat folder stored on the outside of the PATH, Centos (Redhat-based distro) always asked me what I wanted to do with the file, "Open, Display" etc. Is this correct about the PATH?

Thanks again for you help.
 
Old 02-09-2008, 07:18 AM   #8
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
/opt as program storage

"Alternatively - and this would in fact be the best choice - under /opt, but you'd have to include that in your path yourself."

Why is this the best choice?
 
Old 02-09-2008, 07:36 AM   #9
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Oh, just a matter of following the FHS standards. Opt is where you should put (binary) third party applications. /usr/local tends to be used for packages you compile yourself.

As for clicking icons, the only reason that a distribution asks you what to do is because it doesn't know what to do until the binary is in its path. Of course, you need to add a link to the executable in the navicat folder, not the folder as a whole.
 
Old 02-09-2008, 01:29 PM   #10
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by qwerty_tele View Post
I figured out how to manipulate the PATH. Thanks for all guidance. My next question is: If I put any executable file in my PATH, or add a folder with an executable file to my PATH, will it launch when double clicked? When I had the Navicat folder stored on the outside of the PATH, Centos (Redhat-based distro) always asked me what I wanted to do with the file, "Open, Display" etc. Is this correct about the PATH?

Thanks again for you help.
The program that you want to use when you click on a file must be in the PATH. There is also a further condition to be met. KDE keeps a mime list of what program to start when a particular file extension is clicked. I am not in KDE right now but from memory you get to KDE's mime list by clicking on Control Center -> KDE Components -> file extensions.

That gets you to a window where you can change or add entries as to what program is executed when you click on a particular file extension.

---------------------
Steve Stites
 
Old 02-09-2008, 11:07 PM   #11
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks!

Many thanks to all.

TW
 
  


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
installing launcher and icon on desktop zenwalk 5 starkadder Zenwalk 2 01-29-2008 12:50 AM
How do i create a KDE desktop icon which runs a program using a different group-id? jcosenzo Linux - General 3 06-10-2006 09:44 AM
create launcher in gnome innersmile Linux - General 3 06-09-2005 08:57 AM
create launcher in gnome innersmile Linux - Newbie 2 06-09-2005 07:32 AM
launcher icon in GNOME brian0918 Linux - Newbie 6 06-06-2003 01:41 PM


All times are GMT -5. The time now is 11:28 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