KDE Menu's
John L Fjellstad
john-ubuntu at fjellstad.org
Thu Jun 7 16:28:54 UTC 2007
damian <misc at daminator.com> writes:
> Also, could someone give me a guide as to what should be in the menu and
> what's from Gnome? I don't want to have only Gnome apps in Gnome and KDE
> apps in KDE, but at the same time, I don't want Gnome's configuration
> apps showing up in KDE and visa versa.
Run the following scripts:
##############
#!/bin/bash
pushd /usr/share/applications/kde
for file in *.desktop; do
grep -q OnlyShowIn=KDE $file
if [ $? -eq 1 ]; then
sudo su -c "echo 'OnlyShowIn=KDE' >> $file"
fi
done
popd
##############
#!/bin/bash
pushd /usr/share/applications
for file in *.desktop; do
echo $file | grep -q wireshark
if [ $? -eq 0 ]; then
continue
fi
grep Categories $file | grep -q GNOME
if [ $? -eq 0 ]; then
grep -q OnlyShowIn=GNOME $file
if [ $? -eq 1 ]; then
sudo su -c "echo 'OnlyShowIn=GNOME' >> $file"
fi
fi
done
popd
##############
The first one will make all KDE programs invisible in the GNOME menu.
The second one will make all GNOME programs invisible in the KDE menu.
I saved the first script in a file called kdemenu.sh and the second
script in a file called gnomemenu.sh. Change the permission on the
files (chmod +x <filename>).
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the kubuntu-users
mailing list