LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2009, 06:59 PM   #1
Leonti
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
.desktop icon is not displayed


Hello!
I'm trying to add .desktop file for my application but I'm stuck with very strange problem.
I created 48x48 icon for my program called etmmanager.png
I created .desktop file according to specifications:
Code:
[Desktop Entry]
X-SuSE-translate=true
Categories=Application;Utility;X-SuSE-TimeUtility;
Comment=ETM Manager for time logging
Exec=etmmanager
Name=ETM Manager
GenericName=ETM Manager for time logging
Icon=etmmanager
StartupNotify=true
Terminal=false
Type=Application
I place .desktop file into /usr/share/applications
I place icon file info /usr/share/pixmaps also tried to put it into
/usr/share/icons/hicolor/48x48/apps

My problem is that icon is not working in menu! I can find my program in Utilities->Time->ETM Manager and this is what I wanted, but there is no icon for the program.

It starts working if I specify absolute path in etmmanager.desktop file like
Code:
Icon=/usr/share/pixmaps/etmmanager.png
About my system - Opensuse 11.1 KDE 4.2

What am I doing wrong?

Leonti
 
Old 08-02-2009, 09:29 PM   #2
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
you seem to have already solved this problem yourself by specifying an absolute path, where is the problem?
 
Old 08-03-2009, 12:43 AM   #3
Leonti
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
The problem is that my programs are intended to be for different systems and 'prefix' might be different.
On some systems it's '/usr/' on some '/usr/local/' or any other.
So hardcoding absolute path is really not a solution to my problem.
 
Old 01-07-2010, 09:32 PM   #4
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
then why not have the program place this icon in that absolute path at launch?
 
  


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
Gnome desktop not displayed after second login newuser455 Linux - Desktop 2 03-07-2007 07:23 PM
Why is my suse menu icon not displayed Zibrah3ed SUSE / openSUSE 7 01-10-2007 08:49 PM
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 08:48 PM
My Gnome' desktop can not be displayed kill_ads Slackware - Installation 1 07-25-2005 09:38 PM
idesk - icon in upper left corner displayed wrong titopoquito Linux - Software 0 06-19-2005 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:35 AM.

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