Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 01 Aug 2014, 09:59
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
how to fix null entry in menu?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
bignono1


Joined: 17 May 2009
Posts: 362
Location: New ME

PostPosted: Sat 22 Jan 2011, 15:50    Post subject:  how to fix null entry in menu?  

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/menu-spec/menu-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.
[img][/img]
null.png
 Description   
 Filesize   71.53 KB
 Viewed   302 Time(s)

null.png


_________________
-----------------------
Please forgive my bad English.
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sat 22 Jan 2011, 16:27    Post subject: Re: how to fix null entry in menu?  

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.
Back to top
View user's profile Send private message 
bignono1


Joined: 17 May 2009
Posts: 362
Location: New ME

PostPosted: Sat 22 Jan 2011, 23:27    Post subject:  

Man, that was great.
Now woof woof.
Thank you PANZERKOPF.

_________________
-----------------------
Please forgive my bad English.
Back to top
View user's profile Send private message 
bignono1


Joined: 17 May 2009
Posts: 362
Location: New ME

PostPosted: Sun 23 Jan 2011, 07:12    Post subject:  

How can i rename the internet menu to web menu?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Sun 23 Jan 2011, 08:04    Post subject:  

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:
[Desktop Entry]
Encoding=UTF-8
Name=Internet
Icon=www24.png
Type=Directory

changing the Name to Name=Web might do it
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Sun 23 Jan 2011, 08:36    Post subject:  

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:
<Name>Internet</Name>
  <DefaultAppDirs/>
  <DefaultDirectoryDirs/>
  <AppDir>/opt/kde/share/applications/kde</AppDir>
  <Directory>Puppy-Internet.directory</Directory>

to

Code:
<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: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
bignono1


Joined: 17 May 2009
Posts: 362
Location: New ME

PostPosted: Sun 23 Jan 2011, 12:48    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0603s ][ Queries: 12 (0.0046s) ][ GZIP on ]