xfrun and dbus

Jani Monoses jani.monoses at gmail.com
Thu Mar 9 21:46:02 CET 2006


Hello

here's a cleaner xfrun dbus service + client patch.

When built without dbus it behaves exactly as now.
When dbus is enabled it does the following
-  If run with no arguments it tries connecting to a RunDialog service
and if not found falls back to current behaviour.
-  If run with --daemon as argument tries to register itself and provide
a service or exit on failure.
-  If there's an argument which is not --daemon it behaves like now.

This way whoever wants to get faster dialog will launch xfrun --daemon 
in xinitrc for example, others are not affected.

I have tested it in xnest with two screens and it correctly launches the 
dialog on the appropriate screen, although there may be a cleaner or 
more correct way of getting the GdkScreen from a :display.screen string

The verve plugin could take advantage of this too by providing a service 
and simply aquiring focus when it is contacted.

please consider applying this

thanks
Jani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfrun.h
Type: text/x-chdr
Size: 334 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060309/f28602b6/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db.diff
Type: text/x-patch
Size: 9779 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060309/f28602b6/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: org.xfce.RunDialog.service.in
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060309/f28602b6/attachment.ksh>


More information about the Xfce4-dev mailing list