LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Remove the "Software Manager" from MintMenu (modified SLAB) (https://www.linuxquestions.org/questions/linux-software-2/remove-the-software-manager-from-mintmenu-modified-slab-702378/)

joborohe 02-04-2009 09:37 PM

Remove the "Software Manager" from MintMenu (modified SLAB)
 
Hi Guys,

I love the MintMenu, but im using ubuntu. the only thing is, it has a link for "software manager" which opens up MintInstall (a very sad and watered down synaptic), and right below it is "Package Manager" which opens up Synaptic. My question for you guys is, is it possible to remove software manager entry from the menu?


any help is greatly apreciated.

tenko20xx 02-06-2009 02:10 PM

Yes it is. I've been looking for someone to help out here and when I saw that someone had a Mint problem, I was like "Yes! Something I can surely help someone out with!" As it turns out though... it was quite a struggle to figure this out. I did eventually manage to make it happen on my machine though, so hopefully it will work for you. It turns out that it is actually hard coded into the mintMenu program. Ready to get your hands dirty?

First, you need to find where mintMenu is installed. On my machine, it was at:
Code:

/usr/lib/linuxmint/mintMenu
If you don't find it there, open up a terminal and type:
Code:

cd /usr
find -name "mintMenu"

Hopefully you should find the directory that it is installed to by then. Now, cd into that directory by typing something like this into the terminal:
Code:

cd /usr/lib/linuxmint/mintMenu
or wherever your installation may be. Then type in:
Code:

gksudo gedit ./plugins/system_management.py
That should prompt you for the root password and then open up a text editor with some python code in it. You will want to hit Ctrl-F and look for "mintInstall" (without the quotes of course) and in my case, I found the following lines of code:
Code:

              Button1 = easyButton( "/usr/lib/linuxmint/mintSystem/icon.png", self.iconsize, [_("Software manager")], -1, -1 )
              Button1.connect( "clicked", self.ButtonClicked, "/usr/lib/linuxmint/mintInstall/frontend.py" )
              Button1.show()
              self.systemBtnHolder.pack_start( Button1, False, False )
              self.mintMenuWin.setTooltip( Button1, _("Browse and install available software") )

All you want to do is comment out those lines by simply putting a # at the beginning of each line. Then simply log out and log back in and that part of the menu should be gone. Let me know if you have any problems or if nothing at all is working and I can try to assist you further.


All times are GMT -5. The time now is 08:10 PM.