maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Icon locations? (https://talk.maemo.org/showthread.php?t=45501)

EIPI 2010-02-23 00:59

Icon locations?
 
Hi

I am having problems with icon locations for my package.

I am putting the 64x64 icons in /usr/share/icons/scalable/hildon.

I am putting the 40x40 icons in /usr/share/icons/hicolor/40x40/apps/

And the 26x26 are going into /usr/share/icons/hicolor/40x40/apps/

My .desktop file looks like this:

Code:

[Desktop Entry]
 Version=1.0.0
 Encoding=UTF-8
 Name=maeflight
 Comment=A flight status application for Maemo 5
 Exec=/usr/bin/maeflight
 Icon=maeflight
 X-Icon-path=/usr/share/icons  Path to the icon
 X-Window-Icon=maeflight
 Type=Application

It packages fine, but when I try to install the package using dpkg -i, I get the following error:

Code:

dpkg: error processing maeflight_5.1.1-1_armel.deb (--install):
 error creating directory `usr/share/icons/hicolor/26x26/apps': No such file or directory
Errors were encountered while processing:
 maeflight_5.1.1-1_armel.deb

What am I doing wrong? From what I can see of the N900 filesystem, these icon locations already exist. I just want to stuff my icons there as well. Any help is greatly appreciated!

danielwilms 2010-02-23 08:46

Re: Icon locations?
 
Quote:

Originally Posted by EIPI (Post 541951)
error creating directory `usr/share/icons/hicolor/26x26/apps':

Fast guess: did you forget the "/" at the beginning? Otherwise, do you have the sources somewhere?

Daniel

krk969 2010-02-23 08:47

Re: Icon locations?
 
Quote:

Originally Posted by EIPI (Post 541951)
Hi

It packages fine, but when I try to install the package using dpkg -i, I get the following error:

Code:

error creating directory `usr/share/icons/hicolor/26x26/apps': No such file or directory
What am I doing wrong? From what I can see of the N900 filesystem, these icon locations already exist. I just want to stuff my icons there as well. Any help is greatly appreciated!

just double checking
are you sure the path isnt mistyped or a paste error ? ,
from the error you pasted it says
usr/share/icons/hicolor/26x26
its missing the / before usr ==> /usr/share/icons/hicolor/26x26

EDIT: Daniel was quicker with a shorter reply ;)

VDVsx 2010-02-23 23:32

Re: Icon locations?
 
Quote:

Originally Posted by EIPI (Post 541951)
Hi

I am having problems with icon locations for my package.

I am putting the 64x64 icons in /usr/share/icons/scalable/hildon.

I am putting the 40x40 icons in /usr/share/icons/hicolor/40x40/apps/

And the 26x26 are going into /usr/share/icons/hicolor/40x40/apps/

Not relate to your problem, but the correct size is 48x48 not 40x40, and unless you are targeting Diablo as well the 26x26 icon is not needed here.

These lines are redundant in your desktop file:

X-Icon-path=/usr/share/icons Path to the icon
X-Window-Icon=maeflight

The system know where to find the icon if it uses the same name as the desktop file

EIPI 2010-02-24 01:32

Re: Icon locations?
 
Thank you for the responses. I adjusted my .desktop file per VDVsx's recommendation.

I am using PyPackager for the packaging, so AFAICT, I am not specifying the icon location 'usr/....'. I agree that it looks like it should be '/usr/....'.

With PyPackager, I have a 'make.py' file that provides all of the inputs required for the packaging. However, nowhere that I can see am I specifying the icon directories. I simply create that directory structure below 'src'. I am a little stumped. Where would I look to see why the '/' is missing from the path?

mikkov 2010-02-24 02:52

Re: Icon locations?
 
Quote:

Originally Posted by VDVsx (Post 543497)
Not relate to your problem, but the correct size is 48x48 not 40x40, and unless you are targeting Diablo as well the 26x26 icon is not needed here.

Correct size for what? But you are correct that all icon sizes are not needed. Actually only one 64x64 icon is enough for both diablo and fremantle

VDVsx 2010-02-24 12:03

Re: Icon locations?
 
Quote:

Originally Posted by mikkov (Post 543668)
Correct size for what? But you are correct that all icon sizes are not needed. Actually only one 64x64 icon is enough for both diablo and fremantle

Yes, the system scale the icons, but last time I see the specs:

48x48 - Desktop shortcut.
64x64 - Menu icon.

VDVsx 2010-02-24 12:13

Re: Icon locations?
 
Quote:

Originally Posted by EIPI (Post 543611)
Thank you for the responses. I adjusted my .desktop file per VDVsx's recommendation.

I am using PyPackager for the packaging, so AFAICT, I am not specifying the icon location 'usr/....'. I agree that it looks like it should be '/usr/....'.

With PyPackager, I have a 'make.py' file that provides all of the inputs required for the packaging. However, nowhere that I can see am I specifying the icon directories. I simply create that directory structure below 'src'. I am a little stumped. Where would I look to see why the '/' is missing from the path?

I don't know anything about PyPackager never used it, but did you tried to create a dirs file[1] inside your debian directory or add the dirs directly to your makefile ? I know that the icon dirs are already created in a regular system, but probably some script is failing to achieve/see that.

[1] - http://old.gpul.org/colaboraciones/dnmg/ch-dother.html (4.5)
[2] - http://www.debian.org/doc/maint-guide/ch-dother.en.html

EIPI 2010-02-25 03:47

Re: Icon locations?
 
Both of those links indicate that the directories in 'dirs file' do not start with a preceding '/'.

My dirs file matches those guidelines.

The icon shows up in the application menu, and when a desktop shortcut is made. But the icon does not show up in App Manager.

dirs file:

Code:

opt/maeflight/
usr/bin/
usr/share/applications/hildon/
usr/share/icons/


VDVsx 2010-02-25 11:30

Re: Icon locations?
 
Do you have the XB-Maemo-Icon-26[1] field in your debian/control file ?

[1] - http://wiki.maemo.org/Packaging#Disp...o_your_package


All times are GMT. The time now is 02:25.

vBulletin® Version 3.8.8