LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 08-05-2004, 09:25 AM   #1
Moons
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
Question Icon handling in Linux (programming)


Hello,

I know that we can extract icons directly from the .exe file in windows. I am creating a program that has to have the appropriate icon to the application in Linux. Any idea on how I can do that?

Thanks,

Moons
 
Old 08-05-2004, 10:10 AM   #2
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
Extracted from an article on ZDNet about a program called ConsoleOne. Substitute your own program name where appropriate. I edited the content to make it more generic.

http://techupdate.zdnet.com/techupda...1431-4,00.html

------------------------------------------------------------------------------------------

If you're running GNOME, right-click on the middle of your desktop and select New | Launcher. You'll see the Desktop Entry Properties screen. In the Name field, enter the name that you want to appear under the program's icon. In the Command field, enter the command to start the program: EXAMPLE: /usr/ConsoleOne/bin/ConsoleOne. Next, select Application from the Type drop-down list box. Click OK to save your settings, and your icon will appear on your desktop.

If you're using KDE, right-click on the desktop and select Create New | Link To Application. You'll see the Properties For Program.Desktop window appear. Enter the title for the icon in the Link To Application field. Next, click the Execute tab. Enter the command to start your program in the Command field. Click OK, and you're finished.
 
Old 08-05-2004, 10:34 AM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
what toolkit are you using ???
there is a proc filesystem link /proc/self
that each process sees as a way to get info about itself
it's current running directory for instance.....
that can be used to find icons realitive to the executables
installed location.
basically you just have to put it someplace and then load it.
it can't be included in the binary file if it's an image..
 
  


Closed Thread



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
Icon handling in Linux Moons Programming 1 08-05-2004 12:38 PM
linux file handling errors class_struggle Linux - Newbie 1 07-26-2004 05:31 PM
c file handling on linux suchi_s Programming 5 06-23-2004 09:01 AM
c file handling on linux suchi_s LQ Suggestions & Feedback 1 06-23-2004 01:48 AM
File handling in Linux Prommy Programming 7 07-21-2003 01:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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