how to fix null entry in menu?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
bignono1
Posts: 360
Joined: Sun 17 May 2009, 07:30
Location: Q8

how to fix null entry in menu?

#1 Post by bignono1 »

Hi,
I tried to edit the start menu but ended in a mess .
I deleted /etc/xdg/menus/puppy-personal.menu.
Now there is (null) in the menu , like in the attachment.
How can i remove this null thing?
I don't need the personal sub menu , just remove that null.
Since we are here , this is the puppy-internet.menu:
@@@@@@@@@@@@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xfdesktop-menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN" "http://www.freedesktop.org/standards/me ... nu-0.8.dtd">
<Menu>
<Name>Internet</Name>
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<AppDir>/opt/kde/share/applications/kde</AppDir>
<Directory>Puppy-Internet.directory</Directory>
<Include>
<Category>X-Internet</Category>
<Category>WebBrowser</Category>
<Category>Email</Category>
<Category>News</Category>
<Category>InstantMessaging</Category>
<Category>Telephony</Category>
<Category>IRCClient</Category>
<Category>FileTransfer</Category>
<Category>P2P</Category>
</Include>

</Menu>

@@@@@@@@
how can i change this menu name so it will be something like web?
I mean when i click Menu i will get web instead of internet.
I tried to replace the deleted file from the CD but failed to do so, how can that be done?
Sorry for asking so many stupid questions .
Thank you all.
Attachments
null.png
(71.53 KiB) Downloaded 445 times
-----------------------
Please forgive my bad English.

PANZERKOPF
Posts: 282
Joined: Wed 16 Dec 2009, 21:38
Location: Earth

Re: how to fix null entry in menu?

#2 Post by PANZERKOPF »

bignono1 wrote:Hi,
I tried to edit the start menu but ended in a mess .
I deleted /etc/xdg/menus/puppy-personal.menu.
Now there is (null) in the menu
See /etc/xdg/templates/_root_.jwmrc. There is the entry:
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-personal.menu
Delete this entry, run fixmenus, restart jwm.
SUUM CUIQUE.

User avatar
bignono1
Posts: 360
Joined: Sun 17 May 2009, 07:30
Location: Q8

#3 Post by bignono1 »

Man, that was great.
Now woof woof.
Thank you PANZERKOPF.
-----------------------
Please forgive my bad English.

User avatar
bignono1
Posts: 360
Joined: Sun 17 May 2009, 07:30
Location: Q8

#4 Post by bignono1 »

How can i rename the internet menu to web menu?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post by Karl Godt »

I am not sure but at

/usr/share/desktop-directories

there is the entry

/usr/share/desktop-directories/Puppy-Internet.directory

which looks like

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Internet
Icon=www24.png
Type=Directory
changing the Name to Name=Web might do it

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#6 Post by trapster »

I believe /usr/share/desktop-directories/Puppy-Internet.directory controls the icon in the menu (I could be wrong).
Regardless, open /usr/share/desktop-directories/Puppy-Internet.directory, as text, change"Name=Internet" to "Name=Web" and Save-as /usr/share/desktop-directories/Puppy-Web.directory


Open /etc/xdg/menus/puppy-web.menu and change:

Code: Select all

<Name>Internet</Name>
  <DefaultAppDirs/>
  <DefaultDirectoryDirs/>
  <AppDir>/opt/kde/share/applications/kde</AppDir>
  <Directory>Puppy-Internet.directory</Directory>
to

Code: Select all

<Name>Web</Name>
  <DefaultAppDirs/>
  <DefaultDirectoryDirs/>
  <AppDir>/opt/kde/share/applications/kde</AppDir>
  <Directory>Puppy-Web.directory</Directory>
Run fixmenus in console and restart jwm
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
bignono1
Posts: 360
Joined: Sun 17 May 2009, 07:30
Location: Q8

#7 Post by bignono1 »

Here is how it is done:
1/ Go: /etc/xdg/menus/puppy-internet.menu (right click> open as text)
Change ''Internet'' in lines 4,8 and 10 to: ''Web''
Save and exit
Right click puppy-internet.menu > rename to :puppy-web.menu
You can also rename before editing .
2/ Go: /etc/xdg/templates/_root_.jwmrc (open as text)
Edit line 16 like this :puppy-web.menu
save and exit.
3/ Go:/usr/share/desktop-directories > rename Puppy-Internet.directory to:Puppy-Web.directory
open as text edit this line:Name=Internet to Name=Web save & exit.
So far so good ha?
final 2 steps : open console , run :fixmenus ,when done restart jwm.
Thats all.
This can be used to edit all menu entries.
Thank you PANZERKOPF,Karl Godt and trapster , keep up the good puppian spirit.

Post Reply