Results 1 to 6 of 6

Thread: K-menu reconfigure

  1. #1
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401

    K-menu reconfigure

    After re-installing kde and kcore I'm finding dublicates of some programs and non existent programs on the k-menu. It also seems not to pick up programs that are installed or have been downloaded.

    Other than manually editing using the menu editor, is there some way to get this confugured better.

    The menu updating tool isn't finding things either. For example Linneighborhood, which was on the menu before, isn't. But it is on the system

    TIA

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Try using the "update-menus" command, and I seriously hope you have better luck with it than I'm having as you can see a couple of posts down.
    Some of the programs you're missing could though have been thrown into the Deban folder at the top of the folderlist in K-menu.

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    Gave it a try:
    Code:
    root@toybox:~# update-menus
    Unknown error, message=replacewith($string, $replace, $with): $replace and $with                                                              must have the same length.
    install-menu: /etc/menu-methods/freedesktop-desktop-entry-spec-dirs: aborting
    update-menus[3106]: Script /etc/menu-methods/freedesktop-desktop-entry-spec-dirs                                                              returned error status 1.
    Unknown error, message=replacewith($string, $replace, $with): $replace and $with                                                              must have the same length.
    install-menu: /etc/menu-methods/freedesktop-desktop-entry-spec-apps: aborting
    update-menus[3106]: Script /etc/menu-methods/freedesktop-desktop-entry-spec-apps                                                              returned error status 1.
    root@toybox:~#
    This all happened after trying to install gnome, which I have - but had to do alot of updating, upgrading and changing desktop managers to get kde back where I could use it.

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    I'm not at home at the moment so I can't recall the exact files, but if you open up those two for editing you'll find ca. 2/3 down something like [replacewith: "/ ", "-"]. I deleted the space after the slash to make it: "/" and the errors went away. If someone has a better solution please let me also know.

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    I coloured and bolded the part where I deleted the extra space, the -apps file is very similar to this one:
    markus@fujibox:~$ cat /etc/menu-methods/freedesktop-desktop-entry-spec-dirs
    #!/usr/sbin/install-menu
    # freedesktop desktop entry spec - directory generation
    # http://www.freedesktop.org/Standards/desktop-entry-spec
    # Copyright 2004 - Chris Cheney
    # Licensed under the GNU General Public License, version 2.

    !include menu.h

    compat="menu-2"

    function DirEntry() =

    "[Desktop Entry]\n"
    "Type=Directory\n"
    "Encoding=UTF-8\n"
    "Name=" title() "\n"
    "GenericName=" title() "\n"
    "Comment=" ifnempty($longtitle,$longtitle) "\n"
    "Icon=" "debian" replacewith(tolower($section),"/","-") "\n";

    outputencoding="UTF-8";

    supported;
    x11 = ;
    text = ;
    endsupported;

    startmenu = "";
    endmenu = "";
    submenutitle = DirEntry();

    treewalk = "M";

    genmenu = ifempty($command,tolower("debian" replacewith($section,"/","-") ".directory"));

    rootsection = "";

    prerun = "rm -rf " prefix() "/*";

    preoutput = "";

    rootprefix = "/var/lib/kde/debian-dirs";

    userprefix = ".local/share/desktop-directories/kde/debian";

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    My bad, the package has been patched/upgraded and the line now reads:
    genmenu = ifempty($command,tolower("debian" replacewith($section,"/ ","--") ".directory"));

Similar Threads

  1. Replies: 13
    Last Post: 05-26-2006, 03:35 PM
  2. menu k
    By Giachi in forum General Support
    Replies: 0
    Last Post: 09-03-2004, 11:27 PM
  3. Replies: 2
    Last Post: 02-03-2004, 02:15 AM
  4. KDE Menu
    By doo-doo in forum Customising & Remastering
    Replies: 2
    Last Post: 06-22-2003, 04:34 AM
  5. Reconfigure X on HD-install???
    By Joakim in forum Hardware & Booting
    Replies: 1
    Last Post: 02-19-2003, 05:29 AM

Posting Permissions

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


Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision T5820 950W Workstation 4.00GHz W-2125 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 950W Workstation 4.00GHz W-2125 No RAM/ GPU/ HDD/ OS

$144.98



Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3 picture

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3

$219.99



HP Z8 G4 Z8G4 Barebone Workstation w/ Intel Xeon Silver - No HDD No RAM No GPU picture

HP Z8 G4 Z8G4 Barebone Workstation w/ Intel Xeon Silver - No HDD No RAM No GPU

$449.99



Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW picture

Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW

$94.99



Lenovo ThinkStation P520 Intel Xeon W-2123 3.6GHz 900W - NO RAM/ GPU/ HDD/ OS picture

Lenovo ThinkStation P520 Intel Xeon W-2123 3.6GHz 900W - NO RAM/ GPU/ HDD/ OS

$189.98



Intel Xeon Gold 6230 2.1 GHz Processor - SRF8W picture

Intel Xeon Gold 6230 2.1 GHz Processor - SRF8W

$29.00



Intel(R) Xeon(R) CPU @ 3.30GHz, 4 Core(s), 32 GB RAM, 1 GB  HDD Workstation 3 picture

Intel(R) Xeon(R) CPU @ 3.30GHz, 4 Core(s), 32 GB RAM, 1 GB HDD Workstation 3

$145.00



Intel Xeon Processor E5-2687W V4 SR2NA 3.00GHz Broadwell 160W LGA2011 12-Core picture

Intel Xeon Processor E5-2687W V4 SR2NA 3.00GHz Broadwell 160W LGA2011 12-Core

$36.00