I'm running elementary 0.2 and whenever I open a .deb, it opens in Ubuntu Software Center. Is there any way to make it open in Synaptic instead? I just prefer Synaptic; quicker, easier to use.
I am running Ubuntu 12.04 with the classic desktop,
synaptic will not show up while right clicking a
.deb package and will not show up in the list of other applications because it has no file type association with
To add that association, edit
root and add the line:
(You can also add
Exec=synaptic-pkexec on that line, but as synaptic does not seem to look at the argument provided that doesn't seem to help much)
After that run:
sudo update-desktop-database killall gnome-panel gnome-panel &
Now you should be able to select
synaptic with right clicking.
To make it my default application for
.deb files run:
mimeopen -d path_to_my_deb_file
Then select the
X) Other ... option and provide
synaptic-pkexec as argument.
Only after all that does double clicking the
.deb open synaptic (after prompting for credentials)
I think you can do this through the file browser, Nautilus. I'm not familiar with Elementary but on my Ubuntu system I was able to launch Nautilus and then browse to a .deb file, right click on it, select "Properties" and then select the "Open With" tab and select an application to you want to open with, Synaptic.
Sorry in my Screenshots I don't have Synaptic installed but hopefully you get the idea.