Page 1 of 1

xorg-paths-patch.xzm

Posted: 12 Feb 2012, 22:00
by wread
@fanthom, @brokenman

This patch is in mediafire:

http://www.mediafire.com/?hdy51v49jhu8674

If you are running KDE4 32-bits or Trinity in a 64 bits machine you will get the incorrect window manager in /tmp/.wmanager.

This is because the current script supposes 32-bits is always Trinity and 64-bits is always KDE4.:%)

I commented out 2 lines and added 2 new and signed WRead. I don't know if that is the best way to discriminate between kde and kde4, but it works for me!

Regards!

EDIT: This patch was modified according to advise of brokenman; it is posted again corrected.
Now it works fine!

Re: xorg-paths-patch.xzm

Posted: 13 Feb 2012, 20:18
by brokenman
Thanks Wread i will look into this.

One may have Trinity modules but be using KDE4 or vice versa but i think we can achieve what we need using environment variables.

env|grep trinity
env|grep DESKTOP_SESSION

It gets a little tricky with LXDE, Trinity and KDE all activated at the same time.

Re: xorg-paths-patch.xzm

Posted: 18 Feb 2012, 22:22
by wread
@brokenman
Here is the new version of xorg-paths-patch: http://www.mediafire.com/?qnivmwysgiwsbq6

To discriminate kde4 there is an environment variable named KDE_SESSION_VERSION; For kde4 its value is 4.
This variable doesn't exist at all in Trinity. So I modified the two lines as follows:

Code: Select all

## Modified by WRead to allow KDE4 32-bits too!
[ "$kde" -eq 1 ] && [ "$KDE_SESSION_VERSION" == "4" ] && export DSESS=kde4
[ "$kde" -eq 1 ] && [ -z "$KDE_SESSION_VERSION" ] && export DSESS=kde
I hope you will like it!

Regards! :)