Current desktop detection / app access ...

Waldo Bastian bastian at kde.org
Thu May 6 15:45:53 EEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu May 6 2004 13:03, Michael Meeks wrote:
> Hi guys,
>
> 	Just wondering if it would be possible to standardise on a desktop
> detection method, that would work well for all relevant desktops; there
> are two places in the OO.o code where this causes us pain:
> 	* toolkit integration
> 		+ extensive random X property pokeage,
> 		  WM name sniffage etc. unreliable & fragile
> 	* helper application spawning
> 		+ no detection, each distro patches this one way
> 		  or the other, for mailto: / http: / whatever - and the
> 		  defaults are hard-coded.
>
> 	So - possibly this is standardised already; otherwise a proposal
> something like this might work:
>
> 	* DESKTOP environment variable:
>
> 	This is a ':' delimited symbolic path of desktop technologies, this
> complexity is to allow for the myriad desktops out there built on top of
> various different bits; eg.
>
> 	DESKTOP=kde:qt, DESKTOP=rox:gtk or DESKTOP=gnome:gnome-vfs:gtk
>
> 	This environment variable can be parsed by eg. OO.o to work out which
> toolkit to integrate with in a sane way.
>
> 	In addition - we could have a: 'desktop-open' type shell-script; that
> does something like:
>
> 	if !DESKTOP
> 		DESKTOP=<vendor specific default desktop>
> 	foreach element in DESKTOP
> 		if -f /usr/bin/desktop/$element-open
> 			if !/usr/bin/desktop/$element-open; then exit 0;
> 	exit 1;
>
> 	So - then each desktop as it wishes can install it's own shell script
> to launch whatever it wants for various URIs [ Gnome has an existing
> 'gnome-open' script of this type already ], and they can fallback onto
> each other.
>
> 	Of course - there is probably a much better / simpler way of doing all
> of this that I'm just missing; advice much appreciated.

Sounds simple enough, if you write it out in a spec doc, I will add support in 
KDE for it.

Cheers,
Waldo
- -- 
bastian at kde.org  |   SUSE Linux 9.1 Order Now!   |  bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAmjOBN4pvrENfboIRAmGGAJ94YxBadW5h1mYvtqtp0F8HDSwrpgCglAmF
YeM0vYsYGh8+COm8FOJWPhc=
=f8it
-----END PGP SIGNATURE-----




More information about the xdg mailing list