Open a terminal and type (If you're new, click Elyssa -> Terminal):
-- Make sure that you have gnome-app-install on your system, type in the terminal:
Code: Select all
sudo apt-get install gnome-app-install
Type in your terminal:
Code: Select all
gconf-editor
-- Edit the 'install_software_cmd', change it to:
Code: Select all
/usr/bin/gnome-app-install
Now, run this next command in the terminal:
Code: Select all
sudo vi /usr/lib/linuxmint/mintMenu/plugins/system_management.py
Code: Select all
sudo gedit /usr/lib/linuxmint/mintMenu/plugins/system_management.py
Code: Select all
self.installSoftwareCmd = self.gconf.get( "string", "install_software_cmd", "/usr/lib/linuxmint/mintInstall/mintInstall.py").split()
and changing it to:
Code: Select all
self.installSoftwareCmd = self.gconf.get( "string", "install_software_cmd", "/usr/bin/gnome-app-install").split()
-- Scroll down to:
Code: Select all
wTree.get_widget("label1").set_text(_("Software Portal"))
Code: Select all
wTree.get_widget("label1").set_text(_("Add/Remove..."))
-- Press escape to exit insert mode.
-- Now press and hold shift, and press z twice in immediate succesion to save your file.
To change the icon on the menu, do the following:
-- If you want the default gnome icon for the Add/Remove application, then run in the terminal:
Code: Select all
sudo cp /usr/share/icons/hicolor/scalable/apps/gnome-app-install.svg /usr/lib/linuxmint/mintMenu/plugins/gnome-app-install.svg
Code: Select all
sudo gimp /usr/lib/linuxmint/mintMenu/plugins/gnome-app-install.svg
-- Go to file -> save as... -> in the name box type: gnome-app-install.png -> then click All Images and scroll down to PNG image (*.png) -> then click save.
Now we want to place our menu icon on the menu, do so by using your terminal and typing:
Code: Select all
sudo vi /usr/lib/linuxmint/mintMenu/plugins/system_management.glade
-- Go to the line:
Code: Select all
<property name="pixbuf">mintmenu_icon.png</property>
-- Since we just made our icon from the vector image for the gnome-app-install, we will edit the line to look like this:
Code: Select all
<property name="pixbuf">gnome-app-install.png</property>
Final steps now!
In the terminal, type:
Code: Select all
killall gnome-panel
-- When it's back up, you should see the changes wrought on the Elyssa menu -> Add/Remove...
That's it, we are now edited and can now use the gnome application installer.
EDIT: How to edit other portions of the System widget on the slab menu
Work with the same files as above:
Code: Select all
sudo vi /usr/lib/linuxmint/mintMenu/plugins/system_management.glade
Code: Select all
sudo vi /usr/lib/linuxmint/mintMenu/plugins/system_management.py
-- When looking at the files, you will see a matching information here, notice:
system_management.glade has:
Code: Select all
<widget class="GtkButton" id="install_software">
Code: Select all
self.installSoftwareBtn = wTree.get_widget( "install_software" )
-- Simple concept to get, the system_management.glade file is the actual menu layout and coding for the menu itself and the system_management.py file is the actual code to what the system_management.glade is calling to execute.
-- So, to change any application to run in the system widget, you can edit this portion of the system_management.py:
Code: Select all
self.installSoftwareCmd = self.gconf.get( "string", "install_software_cmd", "/usr/lib/linuxmint/mintInstall/mintInstall.py").split()
self.packagemanagerCmd = self.gconf.get( "string", "package_manager_cmd", "gksu /usr/sbin/synaptic").split()
self.controlCenterCmd = self.gconf.get( "string", "control_center_cmd","gnome-control-center" ).split()
self.terminalCmd = self.gconf.get( "string", "terminal_cmd","gnome-terminal" ).split()
self.quitSessionCmd = self.gconf.get( "string", "quit_cmd", "gnome-session-save --kill" ).split()
self.hideseparator = self.gconf.get( "bool", "hide_separator", False )
Use your imagination to place whatever applications you need under the system widget. Hope this was helpful. Please give me your feedback to help build upon or add to this. Thanks!
* Coming soon, how to customize the places widget on the mintMenu slab and how to customize the Applications menu on the mintMenu slab, will just extend this post and change the heading to customizing the entire slab menu.