Gnome-desktop from Kubuntu

John L Fjellstad john-ubuntu at fjellstad.org
Wed May 9 05:38:02 UTC 2007


"Rashid ul Islam" <rashid786 at gmail.com> writes:

> Chris, I did it a while ago too and got exactly what you're talking
> about...was very annoying. I had a tonne of Gnome apps in the KDE
> menu, gdm instead of kdm, esd didn't work under gnome, I think gedit
> loaded instead of kate too.

The following scripts will remove kde menu entries in gnome and gnome
menu entries in kde.

removing kde entries from gnome menu:
################
#!/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
###############

Removing gnome entries from kde menu:
#!/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
################

removing gnome entries from kde menu is a little uglier, since gnome
doesn't put all its applications under gnome, but just puts in the
applications directory

I also have a virtual package that will install the ubuntu desktop in a
kubuntu system, without installing stuff that is already covered by
kubuntu (like usplash, gdm etc etc).  I haven't updated it for feisty,
but if you are interested in the one I did for edgy, I can give you a
link.

-- 
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes





More information about the kubuntu-users mailing list