Changes between Initial Version and Version 1 of kde/addingApplicationsAndIcons


Ignore:
Timestamp:
Nov 30, 2009, 2:01:50 PM (15 years ago)
Author:
Jörg Steffens
Comment:

copied from general page

Legend:

Unmodified
Added
Removed
Modified
  • kde/addingApplicationsAndIcons

    v1 v1  
     1===== adding appications =====
     2
     3Example application: example
     4
     5Where 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
     13to 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)
     18cp -a example.svgz /usr/share/pixmap/
     19
     20# create a directory for testing
     21mkdir /tmp/test
     22
     23# copy some .desktop files to the testing directory. At least one should have the line "Icon=example"
     24cp -a example_working.desktop example_testing.desktop /tmp/test
     25
     26# remove the users icon cache
     27rm -r ~/.kde4/cache-*/kpc/
     28
     29# check if the icons gets displayed correctly
     30strace -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
     35less /tmp/test/konq_icon.strace
     36}}}