Active Topics

 


Reply
Thread Tools
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#1
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!
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Originally Posted by EIPI View Post
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
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#3
Originally Posted by EIPI View Post
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
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post:
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#4
Originally Posted by EIPI View Post
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
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#5
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?
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#6
Originally Posted by VDVsx View Post
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's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#7
Originally Posted by mikkov View Post
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.
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#8
Originally Posted by EIPI View Post
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
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#9
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/
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#10
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
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
Reply

Tags
icon locations


 
Forum Jump


All times are GMT. The time now is 01:47.