| 43 | | ===== adding appications ===== |
| 44 | | |
| 45 | | Example application: example |
| 46 | | |
| 47 | | Where possible, we store our stuff in a separate subdirectory {{{smartclient}}} |
| 48 | | |
| 49 | | || {{{/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 || || |
| 50 | | || {{{/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) || || |
| 51 | | |
| 52 | | |
| 53 | | ====== testing KDE4 icons ====== |
| 54 | | |
| 55 | | to test, if an icon is recognised by the system, act as follow: |
| 56 | | |
| 57 | | {{{ |
| 58 | | # copy the icon example.png or example.svgz to /usr/share/pixmap/ |
| 59 | | # if available, choose the svgz image format, otherwise png. (xpm does also work) |
| 60 | | cp -a example.svgz /usr/share/pixmap/ |
| 61 | | |
| 62 | | # create a directory for testing |
| 63 | | mkdir /tmp/test |
| 64 | | |
| 65 | | # copy some .desktop files to the testing directory. At least one should have the line "Icon=example" |
| 66 | | cp -a example_working.desktop example_testing.desktop /tmp/test |
| 67 | | |
| 68 | | # remove the users icon cache |
| 69 | | rm -r ~/.kde4/cache-*/kpc/ |
| 70 | | |
| 71 | | # check if the icons gets displayed correctly |
| 72 | | strace -e trace=access -o /tmp/test/konq_icon.strace -f konqueror /tmp/test |
| 73 | | |
| 74 | | # close konqueror |
| 75 | | |
| 76 | | # in case of problems, analyse the strace log file |
| 77 | | less /tmp/test/konq_icon.strace |
| 78 | | }}} |
| 79 | | |
| 80 | | |
| 81 | | ===== Restrict Access to Appications ===== |
| 82 | | |
| 83 | | [wiki:kde/ApplicationAccessRestrictions] |
| | 43 | * [wiki:kde/addingApplicationsAndIcons] |
| | 44 | * [wiki:kde/ApplicationAccessRestrictions] |
| | 45 | * [wiki:kde/bookmarks] |