On Fri, 2007-08-17 at 14:11 -0400, Matthias Clasen wrote:
Yeah, doing a "lauch preferred browser/mail client/terminal" applet should
take ~20 lines of non-boilerplate code...
Turns out it took a bit more than 20 lines, but I ended up taking a
different approach to implementing this anyway. The attached panel patch
does 3 things:
- let the launcher properties dialog handle selected desktop files
sensibly
- make the panel optionally use file monitoring for desktop files
backing launchers
- add some code that maintains preferred-web-browser.desktop and
preferred-mail-reader.desktop and keeps them in sync with the
corresponding gconf keys.
The first two parts make sense independently of preferred apps;
the third one should maybe live somewhere else, e.g.
gnome-settings-daemon.
Using this patch, we can have nicely updating launchers with correct
icons for the preferred web and mail apps.
Matthias