Monday, February 16, 2009

Create a menu item for aptitude

I love Aptitude, it is the best UI package manager for Ubuntu and Debian functionality wise. Since it is a curses library, it doesn't have a menu item to run it. So for those that also like Aptitude and want to be lazy about creating a menu for it, here you go.

Just save this content to ~/.local/share/applications/aptitude.desktop:

  [Desktop Entry]
  Type=Application
  Encoding=UTF-8
  Name=Aptitude
  GenericName=
  Comment=Aptitude
  Icon=/usr/share/icons/oxygen/64x64/apps/system-software-update.png
  Terminal=false
  Exec=gksu -- /usr/bin/gnome-terminal --title=Aptitude --command=/usr/bin/aptitude --geometry=150x37
  Categories=System

Just tweak the geometry, which terminal you like and the Icon as you see fit.