| 1 | ===== adding appications ===== |
| 2 | |
| 3 | Example application: example |
| 4 | |
| 5 | Where possible, we store our stuff in a separate subdirectory {{{smartclient}}} |
| 6 | |
| 7 | || {{{/usr/share/applications/example.desktop}}} || general application description, like Name, Exec(utable), Icon. SmartClient subdirectory {{{/usr/share/applications/smartclient/}}} would by possible, but {{{%suse_update_desktop_file}}} does not support directories || || |
| 8 | || {{{/usr/share/pixmap/example.png}}} || application icon (using /usr/share/icons/default.kde4/48x48/apps/example.png is also possible, but more complicated. Also problems occur, if the user changes the default icon them) || || |
| 9 | |
| 10 | |
| 11 | ====== testing KDE4 icons ====== |
| 12 | |
| 13 | to test, if an icon is recognised by the system, act as follow: |
| 14 | |
| 15 | {{{ |
| 16 | # copy the icon example.png or example.svgz to /usr/share/pixmap/ |
| 17 | # if available, choose the svgz image format, otherwise png. (xpm does also work) |
| 18 | cp -a example.svgz /usr/share/pixmap/ |
| 19 | |
| 20 | # create a directory for testing |
| 21 | mkdir /tmp/test |
| 22 | |
| 23 | # copy some .desktop files to the testing directory. At least one should have the line "Icon=example" |
| 24 | cp -a example_working.desktop example_testing.desktop /tmp/test |
| 25 | |
| 26 | # remove the users icon cache |
| 27 | rm -r ~/.kde4/cache-*/kpc/ |
| 28 | |
| 29 | # check if the icons gets displayed correctly |
| 30 | strace -e trace=access -o /tmp/test/konq_icon.strace -f konqueror /tmp/test |
| 31 | |
| 32 | # close konqueror |
| 33 | |
| 34 | # in case of problems, analyse the strace log file |
| 35 | less /tmp/test/konq_icon.strace |
| 36 | }}} |