Gnome-desktop from Kubuntu
Larry Hartman
larryhartman50 at bellsouth.net
Wed May 9 10:05:18 UTC 2007
Hey I like these scripts....Im still learning the ropes and wish to understand
the code better,exactly what do the commands
grep -q OnlyShowIn=KDE $file
sudo su -c "echo 'OnlyShowIn=KDE' >> $file"
do to the files they process?
Also in this discussion overall....I have downloaded Ubuntu, then installed
Kubuntu afterwards several times, I get KATE rather than GEDIT as default in
my kubuntu. Maybe just reinstalling (Adept: find package, right click,
reinstall) Kubuntu-Desktop after you have installed Ubuntu-Desktop will take
back the stuff that GNOME steals from KDE, such as KATE?
Larry
On Wednesday 09 May 2007 01:38:02 am John L Fjellstad wrote:
> "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