[kde-linux] adding a sub-menu to kicker

James Richard Tyrer tyrerj at acm.org
Thu Nov 15 21:42:56 UTC 2007


Jens Stroebel wrote:
> 		Hiya.
> 
> We're having the problem of placing a sub-menu which already exists in
> the general menu structure on the kicker (the panel).
> 
> As
> 1.) we don't get access to all the machines where we want to do that
> 2.) we want it to be on the kicker even for "new users" (those which
> haven't used a KDE-session before)
> 
> dragging it from the menu to the kicker is no option.
> 
> The sub-menu has been added by us using the fiollowing xdg-desktop-menu
> calls:
> 
> ########################################################################
> xdg-desktop-menu install --mode system \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500.directory \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500Help.desktop
> 
> xdg-desktop-menu install --mode system \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500.directory \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-cs5cal.desktop
> 
> xdg-desktop-menu install --mode system \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500.directory \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-cs5recorder.desktop
> 
> xdg-desktop-menu install --mode system \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500.directory \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-cs5view.desktop
> 
> xdg-desktop-menu install --mode system \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-AG500.directory \
> /usr/share/doc/cs-enginesoftware-%{version}/bclinux-cs5calcpos.desktop
> ########################################################################
> 
> Does anybody know how we can achieve that (the presence of the submenu
> on the kicker as an icon) in a similar fashion like the addition of the
> sub-menu via xdg-desktop-menu?

You should be able to add this to users that have not been created yet 
by adding it to: /etc/skel/.  You will have to add this by hand by 
creating and editing files as though 'skel' was a user account.  Look at 
the kicker files in: $HOME/.kde/share/config/ to see what was added to 
the file when you did the drag 'n' drop to Kicker.

If the users have already been created, you will need to do it by drag 
and drop for each user, or hand edit the relevant file in 
$HOME/.kde/share/config/.  If you are good at using sed and or awk, you 
can probably do this with one of them rather than a text editor.  Or 
perhaps if only an addition to a file is needed you can use echo (echo 
"text" >> file will add text to the end of the file.

-- 
JRT



More information about the kde-linux mailing list