Thomas Kunze schrieb:
Bernhard Guillon wrote:
Hi all,
I want to get some advice for what is a good way to create /usr/lib/opie/apps/XQt2/foo.desktop files for X/Qt2 and xqtlauncher.

Currently only xkbd is included. There is a xqtlauncher-xkbd-desktop.bb file which creates a package that depends on xkbd and includes a /usr/lib/opie/apps/XQt2/xkbd.desktop file. Now I want to add other packages like minimo as well. For this I need to create a lot of .bb files at xqtlauncher/xqtlauncher-foo-desktop.bb.

I now created two proofe of concept scripts [1][2] (they need to be tested). One, which parses /usr/share/applications/*.desktop files and generates /usr/lib/opie/apps/XQt2/*.desktop files out of them. And another, searches for files in /usr/lib/opie/apps/XQt2/*.desktop which are no longer present at /usr/share/applications and removes the matching generated files.

Advantages:
- no need to create a lot of .bb files
- users can just do opkg install foo + convert script (or restart)

Disadvantages:
- the files are not under control of the package manager!
- user needs to act (restart or clicking the convert script)

If someone wants I can provide my qemuarm images for testing.

So what do you think?
What about running the script at the start of xqt?

For this you need to have at least one .desktop file generated already but it would be possible as an additional feature. I like to run them at startup and provide two icons for them. Do you like the script idea more or less than the package idea?

best regards
Bernhard Guillon

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to