-
Senior Member
registered user
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
-
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.
-
Senior Member
registered user
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.
-
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.
-
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";
-
My bad, the package has been patched/upgraded and the line now reads:
genmenu = ifempty($command,tolower("debian" replacewith($section,"/ ","--") ".directory"));
Similar Threads
-
Replies: 13
Last Post: 05-26-2006, 03:35 PM
-
By Giachi in forum General Support
Replies: 0
Last Post: 09-03-2004, 11:27 PM
-
By ckassab in forum Networking
Replies: 2
Last Post: 02-03-2004, 02:15 AM
-
By doo-doo in forum Customising & Remastering
Replies: 2
Last Post: 06-22-2003, 04:34 AM
-
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
-
Forum Rules

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$459.00

2 in 1 USB 3.0 Card Reader Micro TF card Reader usb adapter High Speed Cardreder
$3.99

P43330-0A1 HPE 32GB 2RX8 PC5-4800B DDR5 SERVER RAM P43328-B21 / HMCG88MEBRA107N
$1100.00

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

*LOT OF 6* SK Hynix 64GB 4DRx4 PC4-2400T HMAA8GL7AMR4N-UH Memory RAM
$1380.00

RAM Memory Lot 8GB 16GB DDR4 Mixed Speeds Tested & Working
$1470.00

Lot of 5 16GB 2Rx8 PC4 2666v|3200AA|2400T Mixed Brands (Tested)
$350.00

2 Pack USB C SD TF Card Reader Adapter Zinc Alloy USB-C to USB for iPhone 15-17
$3.35

128 GB MICRON (4x32gb) 2RX4 PC4-2933Y DDR4 SERVER MEMORY MTA36ASF4G72PZ-2G9E2
$750.00