low-hanging fruit

Matthias Clasen mclasen at redhat.com
Sun Aug 26 04:58:04 UTC 2007


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: launcher-desktop-file-improvements.patch
Type: text/x-patch
Size: 18281 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/desktop/attachments/20070826/642dc50e/attachment.bin 


More information about the desktop mailing list