Author Topic: delete an item from the main menu, how? (SOLVED)  (Read 2944 times)

Offline gychang

  • Member
  • ***
  • Posts: 102
  • Karma: 7
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
delete an item from the main menu, how? (SOLVED)
« on: June 21, 2015, 10:29:07 am »
on P6, under "menu" dropdown, I have "chromium" that I have removed and using chrome.

How do I remove the chromium icon here?, removing, purging the package, left this residual.  I want to upload a .jpg of the problem, but not sure how...
« Last Edit: June 21, 2015, 03:09:33 pm by gychang »

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: delete an item from the main menu, how?
« Reply #1 on: June 21, 2015, 10:48:49 am »
Are you talking about the icon that's not in the Internet sub menu?  It's in the section between Preferences and Logout?  That's a custom thing, but easy to remove.  Run this in the terminal:

Code: [Select]
gedit ~/.config/lxpanel/Peppermint/panels/panel
You'll see a menu entry that looks something like this:

Code: [Select]
        item {
            name=Chromium
            image=chromium
            action=chromium-browser
        }

(I don't have Chromium installed and I have it removed, so I did that from memory)

Anyway, just delete that whole thing.  Save, close out of the program and immediately log out and back in for the change to register.  Note:  I tried doing something else before logging out and back in once, and it messed up what I was trying to do and I had to do it again, so make sure logging out and back in is the next thing you do.

Alternately, if you wanted that to say something else, you could change the entry to something else.  IE: say you wanted Chrome there.  You could do this:

Code: [Select]
        item {
            name=Google Chrome
            image=chrome
            action=google-chrome-stable
        }

Just food for thought.  ;)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: delete an item from the main menu, how?
« Reply #2 on: June 21, 2015, 11:14:03 am »
It would then be a good idea to delete the backup file gedit created:
Code: [Select]
nemo ~/.config/lxpanel/Peppermint/panelsand delete the file:

panels~

be sure to ONLY delete the one that ends with a tilde (~)

That backup file has been known to cause problems
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline gychang

  • Member
  • ***
  • Posts: 102
  • Karma: 7
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: delete an item from the main menu, how?
« Reply #3 on: June 21, 2015, 03:11:18 pm »
Are you talking about the icon that's not in the Internet sub menu?  It's in the section between Preferences and Logout?  That's a custom thing, but easy to remove.  Run this in the terminal:

Code: [Select]
gedit ~/.config/lxpanel/Peppermint/panels/panel
You'll see a menu entry that looks something like this:

Code: [Select]
        item {
            name=Chromium
            image=chromium
            action=chromium-browser
        }

(I don't have Chromium installed and I have it removed, so I did that from memory)

Anyway, just delete that whole thing.  Save, close out of the program and immediately log out and back in for the change to register.  Note:  I tried doing something else before logging out and back in once, and it messed up what I was trying to do and I had to do it again, so make sure logging out and back in is the next thing you do.

Alternately, if you wanted that to say something else, you could change the entry to something else.  IE: say you wanted Chrome there.  You could do this:

Code: [Select]
        item {
            name=Google Chrome
            image=chrome
            action=google-chrome-stable
        }

Just food for thought.  ;)

works very well.  For adding chrome with proper icon, I modified a bit

 item {
            name= Chrome
            image=google-chrome
            action=google-chrome-stable
        }


Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: delete an item from the main menu, how?
« Reply #4 on: June 21, 2015, 03:42:47 pm »
Yeah, I wasn't sure what the name of the Chrome icon was, so I took a stab at it.  ;)  I did remember the package name, though, google-chrome-stable.

It would then be a good idea to delete the backup file gedit created:
Code: [Select]
nemo ~/.config/lxpanel/Peppermint/panelsand delete the file:

panels~

be sure to ONLY delete the one that ends with a tilde (~)

That backup file has been known to cause problems

I always forget that part because I've never had an issue with it.   ;)

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: delete an item from the main menu, how? (SOLVED)
« Reply #5 on: June 21, 2015, 03:49:25 pm »
Lucky you, the curse of the, panel ~ sucks, especially for a new user.  it's like having a poltergeist in your desktop  >:(!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline blindfish

  • Newly Subscribed
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5,6
Re: delete an item from the main menu, how? (SOLVED)
« Reply #6 on: July 09, 2015, 02:46:43 pm »
Thought I'd register (been meaning to for ages) just to say thanks for this.

For anyone else also looking at this: note that panel~ is a hidden file; so make sure you view hidden files first!

Also, is running [lxpanelctl restart] enough to avoid having to log out and back in?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: delete an item from the main menu, how? (SOLVED)
« Reply #7 on: July 09, 2015, 03:15:35 pm »
Also, is running [lxpanelctl restart] enough to avoid having to log out and back in?

Yep, it sure is...

BTW, welcome to the forum blindfish :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: delete an item from the main menu, how? (SOLVED)
« Reply #8 on: July 09, 2015, 03:31:23 pm »
I just noticed, that running: lxpanelctl restart in PM6 doesn't make the CPU usage go wild.  That's very cool indeed  8)!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: delete an item from the main menu, how? (SOLVED)
« Reply #9 on: July 09, 2015, 05:22:19 pm »
I always forget about lxpanelctl restart.  Probably because, for half of the things that I hope it will work for it doesn't and I still have to log out and back in.  ;)

For anyone else also looking at this: note that panel~ is a hidden file; so make sure you view hidden files first!

Actually, making hidden folders and files visible isn't necessary.  In the upper right of the file manager window, to the right of the folder path and the left of the search thing, is a button with a square arrow pointing at a dot.  If you click that, you get a line where you get an editable path where you can type where you want to go.  So, if I type: /home/chris/.config, it will take me to the hidden .config folder without making hidden items visible.

It's also not necessary to make hidden folders and files visible if you run the following in the termial:

Code: [Select]
nemo ~/.config/lxpanel/Peppermint/panels
Running that in the terminal will take you right to the folder, bypassing the part where you have to open the hidden .config folder.  Likewise, running this in the terminal opens the main panel file:

Code: [Select]
gedit ~/.config/lxpanel/Peppermint/panels/panel
But, it's doer's choice as to how you get there.  ;)

Offline blindfish

  • Newly Subscribed
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5,6
Re: delete an item from the main menu, how? (SOLVED)
« Reply #10 on: July 11, 2015, 03:52:11 pm »
@scifidude79

The problem wasn't navigating to the folder: I used the terminal as suggested to open nemo and got there fine; but couldn't see the panel~ file itself until I enabled show hidden files.  I'm still a bit too tied to GUIs; but I guess if I'd deleted via the terminal I wouldn't have had to see the file in order to select and delete it :)

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: delete an item from the main menu, how? (SOLVED)
« Reply #11 on: July 11, 2015, 04:59:35 pm »
The panel file shouldn't be hidden.   ???

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: delete an item from the main menu, how? (SOLVED)
« Reply #12 on: July 11, 2015, 09:53:55 pm »
Backup files auto-generated by gedit have a tilda ~ tagged onto the end of the file.  These are treated by Nemo, and PCManFM as hidden.  If you manually backup a file with the extension .bak.  The file will remain visible.

To see all of the files in a folder from the command line.  Moderate the command ls (list) with the -a (all) switch. For example, A simple list of my home folder using the command:
Code: [Select]
ls ~/ or:
Code: [Select]
ls /home/andyWill look like this:
Spoiler (click here to view / hide)
[close]
Using the same command only moderating it with the -a switch.  Now gives an output of everything in my home folder:
Code: [Select]
ls -a ~/or
Code: [Select]
ls -a /home/andy
Spoiler (click here to view / hide)
[close]
This is fine if you only have a small number of hidden material.  If you have thousands of them it is best to pipe the command through the less command like this:
Code: [Select]
ls -a | lessYou'll now be able to scroll through them all. 

If you want to just view the hidden files and folders.  The simplest command is:
Code: [Select]
ls -d .!(|.) ~/or
Code: [Select]
ls -d .!(|.) /home/andyThis gives an output of:
Spoiler (click here to view / hide)
[close]
If you are interested, checkout these sites for more info: http://www.cyberciti.biz/faq/bash-shell-display-only-hidden-dot-files/, https://askubuntu.com/questions/468901/how-to-show-only-hidden-files-in-terminal.  There is also more info in the man, (manual) pages in the terminal:
Code: [Select]
man lsThis starts to shows how powerful a tool the command line really is  ;).
« Last Edit: July 11, 2015, 11:05:07 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.