Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to: remove Kubuntu items in the Gnome menu

  1. #1
    Join Date
    Feb 2005
    Location
    Heverlee, Belgium
    Beans
    139
    Distro
    Ubuntu 6.06

    How to: remove Kubuntu items in the Gnome menu

    I found this in another thread and it might be usefull to some people:

    It removes every kubuntu program from the gnome menu:
    Code:
    cd /usr/share/applications/kde
    sudo chmod a+rw /usr/share/applications/kde/*
    for i in *; do echo "OnlyShowIn=KDE;" >> $i; done
    sudo chmod 644 /usr/share/applications/kde/*

  2. #2
    Knome_fan Guest

    Re: How to: remove Kubuntu items in the Gnome menu

    You can scrap the chmod part if you do it as root, that is use sudo -s first.

  3. #3
    Join Date
    Aug 2005
    Beans
    17

    Re: How to: remove Kubuntu items in the Gnome menu

    Or alternatively...
    Code:
    for i in /usr/share/applications/kde/*; do echo "OnlyShowIn=KDE;" | sudo tee -a $i; done

  4. #4
    Join Date
    Oct 2005
    Beans
    1

    Re: How to: remove Kubuntu items in the Gnome menu

    Or still:

    Code:
    sudo sed -i '/OnlyShowIn=/d;$a\OnlyShowIn=KDE;' \
        /usr/share/applications/kde/*.desktop
    which will also remove any existing "OnlyShowIn" settings before adding "OnlyShowIn=KDE;".

  5. #5
    Join Date
    Mar 2005
    Location
    Dubrovnik, Croatia
    Beans
    25
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to: remove Kubuntu items in the Gnome menu

    Quote Originally Posted by lizardo
    Or still:

    Code:
    sudo sed -i '/OnlyShowIn=/d;$a\OnlyShowIn=KDE;' \
        /usr/share/applications/kde/*.desktop
    which will also remove any existing "OnlyShowIn" settings before adding "OnlyShowIn=KDE;".
    How do I now remove OnlyShowIn=KDE from all *.desktop files? Thanks.

  6. #6
    Join Date
    May 2005
    Location
    Netherlands
    Beans
    6

    Re: How to: remove Kubuntu items in the Gnome menu

    Nice, this is what I was looking for, this should become standard in linux.
    Who wants to see KDE items in GNOME or XFCE anyway, if u want to
    run KDE-apps then login to KDE, thats what Desktop environments are for right?

    [Problem]
    I have XFCE+GNOME+KDE on my Ubuntu installed, now what hack can I use,
    so I have it like this when I login to one of these desktop environments:
    KDE = only the KDE apps visible in the kde menu
    GNOME = only the GNOME apps visible in the gnome menu
    XFCE = only the XFCE apps visible in the xfce menu
    [XFCE = only the xfce+gnome apps visible in the xfce menu]
    [XFCE = only the xfce+kde apps visible in the xfce menu]

    So I don't have to browse 10 miles of menu entry's to find the app I want to use.

    TIA

  7. #7
    Join Date
    May 2005
    Beans
    66
    Distro
    Ubuntu 6.06

    Re: How to: remove Kubuntu items in the Gnome menu

    You should add this to the Breezy forum, so more people will see this. It's nice to not have KDE programs in my menu that I never use in gnome.

  8. #8
    Join Date
    Feb 2005
    Location
    Heverlee, Belgium
    Beans
    139
    Distro
    Ubuntu 6.06

    Re: How to: remove Kubuntu items in the Gnome menu

    will do that now.

  9. #9
    Join Date
    Apr 2005
    Location
    Sweden
    Beans
    380
    Distro
    Dapper Drake Testing/

    Re: How to: remove Kubuntu items in the Gnome menu

    Just thought I'd link to two recent discussions on this subject. Maybe someone will find them useful.

    http://www.ubuntuforums.org/showthread.php?t=70410
    http://www.ubuntuforums.org/showthread.php?t=70679
    Software Failure. Press left mouse button to continue.
    Guru Meditation #00000000.48454C50

  10. #10
    Join Date
    Jun 2006
    Location
    Outside Pittsburgh, PA
    Beans
    63
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to: remove Kubuntu items in the Gnome menu

    Quote Originally Posted by A-star
    I found this in another thread and it might be usefull to some people:

    It removes every kubuntu program from the gnome menu:
    Code:
    cd /usr/share/applications/kde
    sudo chmod a+rw /usr/share/applications/kde/*
    for i in *; do echo "OnlyShowIn=KDE;" >> $i; done
    sudo chmod 644 /usr/share/applications/kde/*
    This is an old thread, but I have the same problem as in Breezy. I have Dapper Drake. Would this work in Dapper as well? Do I need to modify any commands to make it work in Dapper?

    Take care,
    Russ

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •