Add Synaptic to the Mate-Menu

This will be changed in a future update, but until then it could be helpful.

If you are like me and love the Mate-Menu then maybe you also have install Synaptic. But whenever you click on the Package Manger link in the menu the Ubuntu Software Center starts. So I wanted to change that and it wasn’t as difficult as I thought it to be.

Fire up the terminal, backup /usr/lib/ubuntu-mate/mate-menu/plugins/ and open it with your favorite editor. I will use geany.

cd /usr/lib/ubuntu-mate//mate-menu/plugins/
sudo cp
sudo geany

And search for the following lines (lines 143-146):

if os.path.exists("/usr/bin/software-center"):
      Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/software-center" )
elif os.path.exists("/usr/bin/synaptic-pkexec"):
       Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/synaptic-pkexec" )

Replace them with the following:

if os.path.exists("/usr/bin/synaptic-pkexec"):
      Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/synaptic-pkexec" )
elif os.path.exists("/usr/bin/software-center"):
      Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/software-center" )

Log out and in again. The next time you click in the Package Manager button it will start Synaptic. The most beautiful thing is, whenever you uninstall Synaptic it will automatically start the Ubuntu Software Center again.

1 Like

Some kind of configuration option should be available for this!

True, but I think this should be default. People who install synaptic are likely not to use the Ubuntu Software Center.


Good point. If you install Synaptic it should be used in preference to Software Center. I’ll change that, or you could submit a pull request on my BitBucket :wink:

1 Like

Change is committed upstream. The next version released will prefer Synaptic over Software Center.


I know your thread is about Synaptic but I just thought I would throw this tip in:

If you right click any downloaded .deb package > Properties > Open With > select Gdebi Package Installer as default and then on > Close (Gdebi must be previously installed), then any further deb packages will automatically open with Gdebi in the future: