[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: RH BR74071 (Was: Configuring the Red Hat Linux desktop)
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-09-17 9:50:53
[Download RAW message or body]

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

On Tuesday 17 September 2002 02:50, Havoc Pennington wrote:
> David Faure <david@mandrakesoft.com> writes:
> > 
> > I wonder which files need to be renamed (can you give a few examples)?
> > I mean, there's only one kmail, one konqueror, etc. All the desktop files
> > with the name of an application should be unique enough already.
> > Those in share/services are only used by KDE anyway, so I guess
> > it's not about those. The rest is apps, so it usually matches the app name.
> > 
> > One exception is the Settings directory (kcontrol modules), though -
> > is that where the problem lies?
> 
> The issue isn't that there was a specific conflict with the packages
> we ship, just that third parties are encouraged to install to
> /usr/share/applications, so everything should be nicely namespaced to
> avoid problems in the future. desktop-file-install enforces
> namespacing like this (along with lots of other .desktop file
> cleanliness).

Are you thinking of a third-party application named "kmail" or "konqueror" ? ;-)
Really, the 'k' is responsible for most of the namespacing already.
desktop-file-install is yours, that's no argument ;)

> This does bring up the issue - if desktop file names are used to load
> services, if you expect to have third party services, probably
> namespaces should be encouraged in the names used by applications as
> well, right?
> 
> i.e. you would want apps to findServiceByDesktopName("some-namespaced-name")

Only some core services are looked up in such a way (like, say, looking
up "khelpcenter" to fire the help).
In the more general case, applications run a KTrader query to find out
which components provide a given type of service, and then load whichever lib
they specify is necessary for that. So, the .desktop filename doesn't matter
at all in the common case (and for all 3rd party apps).

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9hvr972KcVAmwbhARAiH4AJ0d0gQiys46VSAFCLe+1BlKm58j3ACeL1it
crczYkCmvsQwqchw9CE0E7w=
=oLxW
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic