Author Topic: Modify menu categories  (Read 11612 times)

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #15 on: June 09, 2014, 06:51:53 am »
QCS-NB017 / # locate lxde-applications.menu
/etc/xdg/menus/lxde-applications.menu
/etc/xdg/peppermint/menus/lxde-applications.menu
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu

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 #16 on: June 09, 2014, 06:58:02 am »
Do the 2 files:-
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu

both read the same as the one at:
/etc/xdg/peppermint/menus/lxde-applications.menu

except for the first 2 lines ?

And can you confirm the menus are displaying incorrectly when logged onto those accounts.

Would also be a good idea to stop using a root terminal .. use sudo instead.
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 #17 on: June 09, 2014, 07:02:06 am »
code:
QCS-NB017 / # locate lxde-applications.menu
/etc/xdg/menus/lxde-applications.menu
/etc/xdg/peppermint/menus/lxde-applications.menu
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu
code:

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #18 on: June 09, 2014, 07:08:00 am »
Trying to compare these files on these tiny netbook screens is hopeless. It will take me a few minutes to set up a printer and print them out

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 #19 on: June 09, 2014, 07:10:12 am »
You need to log into those 2 accounts and confirm the menu's are messed up within those accounts .. and not just in the root account you're currently using.
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 #20 on: June 09, 2014, 07:16:09 am »
code:
QCS-NB017 / # locate lxde-applications.menu
/etc/xdg/menus/lxde-applications.menu
/etc/xdg/peppermint/menus/lxde-applications.menu
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu
code:

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 #21 on: June 09, 2014, 07:27:51 am »
QCS-NB017 / #

Tells me you're currently logged on as root (#)

I need you to log on as "student" and "itsupport" .. and confirm if the menu's aren't being displayed properly when you click the menu button.
(there's little point in attempting to fix this issue whilst logged on as root .. or you'll only be fixing the menu's for the root user)
« Last Edit: June 09, 2014, 07:30:49 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 #22 on: June 09, 2014, 07:48:58 am »
The menus show the same things whether logged in as itsupport or student.
The 3 lxde-applications.menu files are very different. The student one is less than 1 page long, the itsupport one is a page and a third, the /etc/xdg/Peppermint one is two and a half pages.
They all start with:
code:
<Menu>
           <Name>Applications</Name>
code:
Then the itsupport and student files have a:
code:
<MergeFile> type="parent'>/etc/ect.xdg/peppermint/menus/lxde-applications.menu</MergeFile>
code:
Then the student file contains entries like:
code:
<Menu>
        <Name>Development</Name>
        <DirectoryDir>/home/student/.local/share/desktop-directories</DirectoryDir>
</Menu>
code:
There are also various <Include> and <Exclude> statements.
The itsupport file has lines like:
code:<Menu>
        <Name>Administration</Name>
        <AppDir>/home/itsupport/.local/share/applications</AppDir>
code:
plus lots of <Include> statements
One thing I noticed. In the MergeFile statement the directory is shown as 'peppermint' but when I use pcmanpf to look at it the directory is Peppermint. Will the capital letter (or lack thereof) make any difference in this case. I know it makes a difference if i type cd downloads instead of cd Downloads
I also logged out and back in as student to do this. id -un shows student


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 #23 on: June 09, 2014, 08:32:22 am »
OK in MY user directories
/home/mark/.config/menus
I have NO lxde-applications.menu file .. if there's NO lxde-applications.menu file present there, the system wide one at
/etc/xdg/peppermint/menus/lxde-applications.menu
will be used.

So you might want to try moving the 2 files:
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu
elsewhere (as a backup).

then log off and on to those accounts again .. and see how the menu's are displayed.



the ONLY file in the users ~/.config/menus directory (in MY example) is:-
/home/mark/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu
which is a blank file.

Be sure not to take ownership of that file whilst logged on as root .. it should be owned by the account whos home folder you're in.




So in short .. try moving those files to the users desktop .. they can be deleted later if this works, or moved back if necessary.

Run:
Code: [Select]
sudo mv -v /home/itsupport/.config/menus/lxde-applications.menu /home/itsupport/Desktop/lxde-applications.menuand
Code: [Select]
sudo mv -v /home/student/.config/menus/lxde-applications.menu /home/student/Desktop/lxde-applications.menuthen log off/on to those accounts again and see if the menus are behaving properly.

to undo:-
Code: [Select]
sudo mv -v /home/itsupport/Desktop/lxde-applications.menu /home/itsupport/.config/menus/lxde-applications.menuand
Code: [Select]
sudo mv -v /home/student/Desktop/lxde-applications.menu /home/student/.config/menus/lxde-applications.menuthen log off/on again.
« Last Edit: June 09, 2014, 08:50:53 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 #24 on: June 09, 2014, 09:50:31 am »
I have moved the files while logged in as each user, logged out and back in - no change in menu structure.
Then rebooted the computer and logged in as each user - no change.
Just to see if anything would happen, I backed up the /etc/xdg/peppermint/menus/lxde-applications.menu file, then went in and deleted a few of the entries and made some other changes to names of entries. Rebooted, no difference. So it seems fairly obvious that these files are not controlling the menu system on this version of Peppermint.

Offline dfarquharson

  • Newly Subscribed
  • *
  • Posts: 21
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4
Re: Modify menu categories
« Reply #25 on: June 09, 2014, 11:36:49 am »
I'm making some progress.
I took a netbook with a correctly functioning menu and made some modifications to /etc/xdg/peppermint/menus/lxde-applications.menu. I deleted the Games and Graphics entries and renamed the Preferences Menu setting from DesktpSettings to just Settings and saved the file. The changes showed up immediately on the menu. Games and Graphics were gone but Preferences was still there except it had been moved to the top of the list, then a seperator inserted and System Tools was by itself under the lower seperator.
I then added the changes back in one piece at a time and watched the menu get back to normal.
Next I copied this properly functioning /etc/xdg/peppermint/menus/lxde-applications.menu on to a thumb drive and copied that onto the none working computer. No change in it.
Now inside the Preferences Menu section of /etc/xdg/peppermint/menus/lxde-applications.menu (whose <Name> there is DesktopSettings) there is a line which goes <Directory>lxde-settings.directory</Directory>
So I opened a terminal on the properly functioning computer and ran locate lxde-settings.directory. This returned /usr/share/desktop-directories/lxde-settings.directory
Looked in there and see a series of icons with names that basically match the menu headings. Their properties show them to be desktop configuration files and give names matching the lines given in the <Directory> tags within /etc/xdg/peppermint/menus/lxde-applications.menu.
But there are more of them (in one case MANY more) than there are menu headings.
So somewhere there must be another file (or some sort of set of rules) that governs which of these gets shown on the menu.
Any idea of where to look for that particular little snippet?

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 #26 on: June 09, 2014, 11:40:02 am »
OK, it looks like logging off/on isn't enough .. changes require a REBOOT before they are applied.

These files shouldn't exist:
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu

so move them and REBOOT.

If it helps, here's a copy of the files as exist in MY Peppermint 4 system
(archived to my dropbox)
https://dl.dropboxusercontent.com/u/11876059/directory-configs.tar.gz
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

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 #27 on: June 09, 2014, 12:04:20 pm »
This *should* put you back to defaults.

Remove/move these 2 files:
/home/itsupport/.config/menus/lxde-applications.menu
/home/student/.config/menus/lxde-applications.menu


reinstall peppermint-default-settings:
Code: [Select]
sudo apt-get install --reinstall peppermint-default-settingsthen REBOOT (not just log off/on .. must be a REBOOT)
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 #28 on: June 09, 2014, 12:50:53 pm »
Did that, rebooted and still no Preferences on the menu. Looks ike I'll need to start with a clean install and hope I can remember the various pieces I had worked out earlier as far as modifications went. This time I'll check the state of the menu after each change. That way if it changes again I'll know which step caused it. Thanks for all of you time and effort. If you think of some other configuration file that gets it's fingers into the works, please let me know.

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 #29 on: June 09, 2014, 03:40:54 pm »
IS there any difference in the output from:
Code: [Select]
ls -a /usr/share/desktop-directoriesand the output from mine:-
Code: [Select]
mark@AA1-Blue ~ $ ls -a /usr/share/desktop-directories
.                                    lxde-system.directory
..                                   lxde-system-tools.directory
lxde-audio-video.directory           lxde-utility-accessibility.directory
lxde-development.directory           lxde-utility.directory
lxde-education.directory             xfce-accessories.directory
lxde-game.directory                  xfce-development.directory
lxde-graphics.directory              xfce-education.directory
lxde-hardware.directory              xfce-games.directory
lxde-internet-and-network.directory  xfce-graphics.directory
lxde-look-and-feel.directory         xfce-hardware.directory
lxde-menu-applications.directory     xfce-multimedia.directory
lxde-menu-system.directory           xfce-network.directory
lxde-network.directory               xfce-office.directory
lxde-office.directory                xfce-other.directory
lxde-other.directory                 xfce-personal.directory
lxde-personal.directory              xfce-screensavers.directory
lxde-radio.directory                 xfce-settings.directory
lxde-settings.directory              xfce-system.directory
lxde-settings-system.directory
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec