[opensuse-kde] Re: KDE3 vs KDE4 apps
On Wednesday 12 of September 2007, Dirk Mueller wrote:
On Tuesday, 11. September 2007, Lubos Lunak wrote:
5) we could probably add 'kde3' and 'kde4' scripts that do the proper setup and let one easily run the selected version of KDE apps
The upstream idea was to install a binary that evaluates the desktop environment (e.g. by reading the x property on the x server) and then launches the "right" version of the binary, by changing $PATH and XDG_DATA_DIRS accordingly (and appending 3 or 4 suffix). this is the solution we have to implement for upstream anyway for distributions that have both kde3 and kde4`s kprinter in path, and it would fix the issue for us as well.
I meant something different with 5) - wanting to run a specific version. So if I wanted to run KDE4 version of Konsole, I'd just run "kde4 konsole". What you describe looks ok to me, but since we have the advantage of different prefixes I think for 10.3 it should be enough to have KDE3 in the path first unless the user is in KDE4.
IMHO a last resort would be /opt/kde3/bin in front of the path/xdg_data_dirs based on a sysconfig key, but that doesn`t really fix the kdesu case.
-- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 028 972 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http//www.suse.cz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Wednesday, 12. September 2007, Lubos Lunak wrote:
I meant something different with 5) - wanting to run a specific version. So if I wanted to run KDE4 version of Konsole, I'd just run "kde4 konsole".
which is equivalent to "kfoobar --kde4 konsole" (where we have to find a good name for kfoobar". and kfoobar would by default run kde3 unless the user logged into KDE4.
What you describe looks ok to me, but since we have the advantage of different prefixes I think for 10.3 it should be enough to have KDE3 in the path first unless the user is in KDE4.
it would mean that we invent our own hack instead of using the solution that has to be developed from upstream anyway and we end up with something that we entirely have to maintain on our own. I agree that its simpler but the wrapper binary is not so much different, except that we have to find all the right places to patch (hopefuly thats not too difficult though). Greetings, Dirk -- RPMLINT information under http://en.opensuse.org/Packaging/RpmLint --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Wednesday 12 of September 2007, Dirk Mueller wrote:
On Wednesday, 12. September 2007, Lubos Lunak wrote:
I meant something different with 5) - wanting to run a specific version. So if I wanted to run KDE4 version of Konsole, I'd just run "kde4 konsole".
which is equivalent to "kfoobar --kde4 konsole" (where we have to find a good name for kfoobar". and kfoobar would by default run kde3 unless the user logged into KDE4.
Well, yes (except that "kfoobar --kde4 konsole" is pain to write).
What you describe looks ok to me, but since we have the advantage of different prefixes I think for 10.3 it should be enough to have KDE3 in the path first unless the user is in KDE4.
it would mean that we invent our own hack instead of using the solution that has to be developed from upstream anyway and we end up with something that we entirely have to maintain on our own.
I don't see my proposal of having KDE3 path first as a hack or even something we'd have to maintain. It's simply extending the current state of having only KDE3 with also KDE4, and making sure KDE3 stays the same and KDE4 is the new added thing. You used to run KDE3 (or something else) and it ran KDE3 apps, now you run KDE3 (or something else that's not KDE4) and it should still run KDE3 apps. What maintenance would you expect from having KDE3 first in path? I have it here in my 10.2 and I don't think it has ever broken anything. In the worst case it's probably going to break only KDE4 anyway. Which will have its rough edges in 10.3 anyway and KDE4 problems may be fixed with newer KDE4 packages. And we may also go with upstream solution, whatever that is, as an addition. I don't think KDE3 in path first contradicts upstream solution.
I agree that its simpler but the wrapper binary is not so much different, except that we have to find all the right places to patch (hopefuly thats not too difficult though).
The actual binary may be something like the attachment, but I don't know where to call it. I'd say when calling directly by .desktop file, i.e. kdelibs3/kde4-applications.diff , but I don't know where else. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 028 972 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http//www.suse.cz
participants (2)
-
Dirk Mueller
-
Lubos Lunak