PDA

View Full Version : My application showes not up in the shortcut list


caco3
2010-05-30, 21:59
Hi all

I made a basic python script and a desktop file with logo for it.

The application shows up in the application list. It has the right logo and starts properly. Now I wanted to add a button to my desktop, but it does not show up in the shortcuts list.

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=TWord
Exec=python /home/opt/TWord/bin/main.py
Icon=TWord
X-Osso-Type=application/x-executable



The destop file is in /usr/share/applications/hildon/
A png icon (64x64) is in /usr/share/icons/hicolor/64x64/apps/

Do I have to add an icon on another place?
Which size does it need?

I did a test and copied the BatteryGraph.desktop file to BatteryGraph2.desktop (so I only duplicated it with a new name, the content is identical). It shows now up twice in the application list (as expected), but still only once in the shortcut list.

Is there a cache which has to be updated?
I restarted the phone (N900 with PR1.2) several times without progress.

Joorin
2010-05-30, 22:21
The application manager looks for 48x48 png files as icons.

caco3
2010-05-30, 23:28
Thank you for the quick response.

Into which folder do I have to put it?
I did the following:
48x48 /usr/share/icons/hicolor/48x48/apps/TWord.png
64x64 /usr/share/icons/hicolor/scalable/apps/TWord.png
64x64 /usr/share/icons/hicolor/64x64/apps/TWord.png

and restarted the phone.
But it is still missing in the shortcut list :(

And anyway, why do I not see BatteryGraph twice in the shortcut list?

Joorin
2010-05-31, 06:33
You can, on PR1.1.1 at least, use another place to store the icon. htop is a good example of a program that does this. Perhaps BatteryGraph does the same.

As far as I know, what you've done should work (if you're trying to get the icon to appear in the application manager). I spent an hour troubleshooting kind of the same thing last night.

But, the more I re-read your initial message, the more I doubt that I have understood your initial description. I blame me not using PR1.2 yet.

caco3
2010-05-31, 13:06
You can, on PR1.1.1 at least, use another place to store the icon. htop is a good example of a program that does this. Perhaps BatteryGraph does the same.
BatteryGraph has its icons in the above listed folders.

As far as I know, what you've done should work (if you're trying to get the icon to appear in the application manager). I spent an hour troubleshooting kind of the same thing last night.

This is working fine (See TWord in first screenshot)

But, the more I re-read your initial message, the more I doubt that I have understood your initial description. I blame me not using PR1.2 yet.

Please see 2nd screenshot. TWord should be listed between tuxrace and Uhr.

Thank you for your help!

Joorin
2010-05-31, 13:19
Is the shortcut application part of Maemo or some third party application? I've only added "shortcuts" to desktops as icons and not like this.

caco3
2010-05-31, 13:36
It is part of the official maemo.

How do you add a button (shortcut) to the desktop?

I have to tap on the empty desktop.
The tap on the appearing gear wheal icon on the top right corner.
Then tap on the menu on top (Desktop-Menü in german).
Then tap on the "add shortcut" button (Shortcut hinzufügen).
I then see the shortcut list.
If I tap on one of the icons, it will show up on the desktop.

Joorin
2010-05-31, 13:41
Oh, now I see! I was confused by the German text, sorry.

If I do the same, PR1.1.1, my own application shows up and I've done the same things to add it with its own .desktop file.

So, sorry, no idea why it won't work for you.