Changes between Version 12 and Version 13 of Documentation


Ignore:
Timestamp:
Nov 23, 2009, 3:15:31 PM (15 years ago)
Author:
Jörg Steffens
Comment:

kde4: show applications

Legend:

Unmodified
Added
Removed
Modified
  • Documentation

    v12 v13  
    7777less /tmp/test/konq_icon.strace
    7878}}}
     79
     80
     81
     82===== disable application =====
     83
     84sometimes, applications are installed on the system,
     85but not all users should not be able to start it.
     86
     87uninstalling not always possible,
     88because some users may use it, or it is part of a larger RPM and the other applications from the RPM should stay on the system.
     89
     90different approaches:
     91
     92
     93====== TryExec ======
     94
     95check, if the user is allowed, to execute the application:
     96
     97{{{
     98[Desktop Entry]
     99Comment=Ganttproject
     100Exec=/opt/ganttproject/ganttproject.sh
     101TryExec=/opt/ganttproject/ganttproject.sh
     102}}}
     103
     104If the command that is specified by TryExec is not executable by the user,
     105the Desktop-Entries is not displayed in the Start-Menu.
     106
     107
     108====== hide application by modifying the .desktop file ======
     109
     110show only, if VMware image exists (and is readable):
     111
     112vmware-winnt.desktop:
     113{{{
     114[Desktop Entry]
     115Comment=VMware mit Windows NT starten
     116Exec=/usr/bin/sudo /usr/bin/sc_vmware.sh /local/vmware/vermka/Windows_NT.vmx
     117Hidden[$e]=$(test -r /local/vmware/vermka/Windows_NT.vmx || echo "true")
     118}}}
     119
     120====== permissions ======
     121
     122Set application permissions to not executable by normal user and desktop files to be not readable.
     123Define this in a permissions file under {{{/etc/permissions.d/}}}.
     124Filename must match a installed RPM name.
     125
     126Execute
     127{{{/sbin/conf.d/SuSEconfig.permissions}}}
     128
     129which sets permissions accordanly.
     130After package installation by YaST, SuSEconfig is called
     131and sets permissions.
     132Therefore application is still unaccessable after a package update.
     133
     134Example:
     135/etc/permissions.d/k3b:
     136{{{
     137/usr/bin/k3b                                    root.media      750
     138/usr/share/applications/kde4/k3b.desktop        root.media      640
     139}}}
     140
     141