Author Topic: Modify menu categories  (Read 11616 times)

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Modify menu categories
« on: June 06, 2014, 06:14:00 am »
I am setting up Peppermint 4 to use on 2 dozen netbooks in an elementary school computer lab. Almost finished the setup and found the Preferences category has disappeared from the main menu. I've researched on the web which says the menu layout is contained in /etc/xdg/menus/lxde-applications.menu and /etc/xdg/Peppermint/menus/lxde-applications.menu. Both these files exist but they do not come close to matching with the menu that actually apears. I would like to be able to correct whatever happened in the first place rather than go through the complete throes of reinstalling and doing all the customizations and modifications we want in order to put these machines into the hands of a great number of 'creative' youngsters working under teachers who know nothing about computers in general, much less Linux.




Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Modify menu categories
« Reply #1 on: June 06, 2014, 06:32:20 am »
Can you post the contents of:
Code: [Select]
gedit /etc/xdg/peppermint/menus/lxde-applications.menuwhen posting the output from that command in this forum, please surround the output with "code" tags .. to preserve formatting.

and the output from:
Code: [Select]
tree ~/.config/menus
« Last Edit: June 06, 2014, 06:36:04 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #2 on: June 06, 2014, 09:56:29 am »
Code: [Select]
tree ~/.config/menus
/root/.config/menus [error opening dir]
« Last Edit: June 06, 2014, 10:46:59 am by PCNetSpec »

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #3 on: June 06, 2014, 09:57:34 am »
Code: [Select]
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://standards.freedesktop.org/menu-spec/1.0/menu.dtd">

<Menu>
    <Name>Applications</Name>
   
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>

<!-- Applications Menu -->
    <Menu>
        <Name>Accessories</Name>
        <Directory>lxde-utility.directory</Directory>
        <Include>
            <And>
                <Category>Utility</Category>
                <Not><Category>Accessibility</Category></Not>
                <Not><Category>System</Category></Not>
<Not><Category>AudioVideo</Category></Not>
<Not><Category>Audio</Category></Not>
<Not><Category>Video</Category></Not>
            </And>
                <Or>
                    <Category>Core</Category>
                    <Category>Legacy</Category>
                </Or>
        </Include>
    </Menu>

    <Menu>
        <Name>Universal Access</Name>
        <Directory>lxde-utility-accessibility.directory</Directory>
        <Include>
            <And>
                <Category>Accessibility</Category>
                <Not><Category>Settings</Category></Not>
            </And>
        </Include>
    </Menu>

    <Menu>
        <Name>Development</Name>
        <Directory>lxde-development.directory</Directory>
        <Include>
            <And>
                <Category>Development</Category>
            </And>
            <Filename>emacs.desktop</Filename>
        </Include>
    </Menu>

    <Menu>
        <Name>Education</Name>
        <Directory>lxde-education.directory</Directory>
        <Include>
            <Or>
                <Category>Education</Category>
            </Or>
            <And>
                <Category>Science</Category>
                <Not><Category>Office</Category></Not>
            </And>
        </Include>
    </Menu>

    <Menu>
        <Name>Games</Name>
        <Directory>lxde-game.directory</Directory>
        <Include>
            <Category>Game</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Graphics</Name>
        <Directory>lxde-graphics.directory</Directory>
        <Include>
            <And>
                <Category>Graphics</Category>
                <Not><Category>Utility</Category></Not>
            </And>
        </Include>
    </Menu>

    <Menu>
        <Name>Internet</Name>
        <Directory>lxde-network.directory</Directory>
        <Include>
            <Category>Network</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Multimedia</Name>
        <Directory>lxde-audio-video.directory</Directory>
        <Include>
            <Category>Audio</Category>
            <Category>Video</Category>
            <Category>AudioVideo</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Office</Name>
        <Directory>lxde-office.directory</Directory>
        <Include>
            <Category>Office</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Other</Name>
        <Directory>lxde-other.directory</Directory>
        <OnlyUnallocated/>
        <Include>
            <And/>
        </Include>
    </Menu>

<!-- Administration Menu, to include in Layout section -->
    <Menu>
        <Name>Administration</Name>
        <Directory>lxde-system-tools.directory</Directory>
        <Include>
            <And>
                <Category>Settings</Category>
                <Category>System</Category>
            </And>
            <Or>
                <Category>System</Category>
            </Or>
        </Include>
    </Menu>

<!-- Preferences Menu, to include in Layout section -->
    <Menu>
        <Name>DesktopSettings</Name>
        <Directory>lxde-settings.directory</Directory>
        <Include>
            <And>
                <Category>Settings</Category>
                <Not>
                    <Or>
                        <Category>System</Category>
                    </Or>
                </Not>
            </And>
        </Include>
    </Menu>

<!-- General layout of the whole menu -->
    <Layout>
        <Menuname>Settings</Menuname>
        <Separator/>
        <Merge type="all"/>
        <Separator/>
        <Menuname>Administration</Menuname>
        <Menuname>DesktopSettings</Menuname>
    </Layout>

</Menu>
« Last Edit: June 06, 2014, 10:38:03 am by PCNetSpec »

rjm65

  • Guest
Re: Modify menu categories
« Reply #4 on: June 06, 2014, 10:01:34 am »
just thought i would chime in and ask why you are going thru all this trouble on multiple machines with Peppermint 4 when peppermint 5 is due out very soon and will be an LTS release supported for 5 years when Peppermint 4 is already no longer supported?    :)

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #5 on: June 06, 2014, 10:04:25 am »
Posted the results above. Nowhere in there is there any <Name>Preferences</Name> but that is what appears on the menu normally (just under System Tools, which also does not appear anywhere as a <Name> entry.

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #6 on: June 06, 2014, 10:08:20 am »
Hello Robert, that is the first I have heard about Peppermint 5. I'm also under time constraints. I go on vacation in 11 days (school is already finished) and probably will not have time to set the things up between when I get back and when the school starts. Beginning and end of the school year are the busiest times for us.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Modify menu categories
« Reply #7 on: June 06, 2014, 10:48:00 am »
tree ~/.config/menus
/root/.config/menus [error opening dir]

Are you logged on as root ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #8 on: June 09, 2014, 04:29:56 am »
There is no /.config directory on either of the netbooks I have installed Peppermint on. I also downloaded a pre-built .VDI file from the net and checked on it - no /.config directory (or file).

rjm65

  • Guest
Re: Modify menu categories
« Reply #9 on: June 09, 2014, 05:30:06 am »
There is no /.config directory on either of the netbooks I have installed Peppermint on. I also downloaded a pre-built .VDI file from the net and checked on it - no /.config directory (or file).
.config folder is a hidden folder hence the . in the front of the folder, if you view your home folder in pcmanfm, and then hit ctrl H you will see all the hidden folders then.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Modify menu categories
« Reply #10 on: June 09, 2014, 06:04:21 am »
it's at
~/.config
not
/.config
that would be
/home/<username>/.config
;)

But you still haven't said if you're logged on as "root" ?

What's the output from:
Code: [Select]
id -unor
Code: [Select]
echo $USER
« Last Edit: June 09, 2014, 06:07:47 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #11 on: June 09, 2014, 06:21:06 am »
Sorry for the delay. I've been checking on the different machines. There is no user 'root' on any of them (this is a  derivative of Ubuntu after all). On my machines I have 2 users - itsupport and student. On the virtual machine there is only one - adminuser. I'm logged on the the ones that have administrator privileges - itsupport and adminuser and have been using root terminals or sudo. On my machine I get the following:
code:
QCS-NB017 itsupport # tree .config/menus
.config/menus
└── lxde-applications.menu
code:
while on the virtual machine I get the: '.config/menus [error opening dir] message' as there is no .config/menus directory on that machine.
 

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #12 on: June 09, 2014, 06:22:06 am »
Somewhere there must be a configuration file for what headings appear in the Menu and it is not in the /etc/xdg/menus/lxde-applications.menu and /etc/xdg/Peppermint/menus/lxde-applications.menu files as the information in these files does not match up with the headings that do appear on the menu. The headings I see on each of the 3 systems I have running (one installed from Live DVD burned from downloaded .iso file, one copied from that using the latest Clonzilla, one a prebuilt downloaded virtual machine) are: Accessories; Games; Graphics; Internet; Office; Sound & Video; space; System Tools; space; then items controlled by LXPANEL. On the virtual machine there is also Preferences immediately under System Tools. This is the heading I need to get back as it contains all the tools for configuring the desktop (which the students like to do!). None of the .menu files that I can find contain any <Name>Preferences</Name> or any <Name>Sound & Video</Name>.

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #13 on: June 09, 2014, 06:23:24 am »
I just ran the id - un and it returned root

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Modify menu categories
« Reply #14 on: June 09, 2014, 06:46:03 am »
ok, run:
Code: [Select]
sudo updatedbthen post the output from:
Code: [Select]
sudo locate lxde-applications.menu
and can you confirm whether the menu structure is messed up when logged in to the "student" account ?
« Last Edit: June 09, 2014, 06:50:01 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec