Salix/XFCE as environment for many users

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Salix/XFCE as environment for many users

Post by witek »

Thanks Shador. Your trick is working. Pitty however that Salix doesn`t have full-fledged GDM with face-selector (as Fedora or Ubuntu) allowing to switch between logged users.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Salix/XFCE as environment for many users

Post by witek »

witek wrote:Thanks Shador. Your trick is working. Pitty however that Salix doesn`t have full-fledged GDM with face-selector (as Fedora or Ubuntu) allowing to switch between logged users.
A kind of solution I found at last is adding this line to /etc/X11/app-defaults/XScreenSaver

Code: Select all

*newLoginCommand:       gdmflexiserver -l -a -c FLEXI_XSERVER
This add "New Login" options when the screen is locked with xfce screensaver
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Salix/XFCE as environment for many users

Post by JRD »

Usefull ! I need to put this on the wiki....or perhaps make it the default for further version (if it's possible...maybe not without modifying upstream packages)
Image
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Salix/XFCE as environment for many users

Post by witek »

JRD wrote:or perhaps make it the default for further version (if it's possible...maybe not without modifying upstream packages)
Exactly what I thought about but was afraid to propose.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Salix/XFCE as environment for many users

Post by gapan »

witek wrote:
JRD wrote:or perhaps make it the default for further version (if it's possible...maybe not without modifying upstream packages)
Exactly what I thought about but was afraid to propose.
Not possible without modifying the slackware package.
Image
Image
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Salix/XFCE as environment for many users

Post by witek »

I`ve just proposed it on the Slackware forum:
http://www.linuxquestions.org/questions ... ost4600668
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: Salix/XFCE as environment for many users

Post by witek »

And they said, gdmflexiserver is not part of slackware. In such case the maintainer of gdmflexiserver in Salix should include the modified /etc/X11/app-defaults/XScreenSaver in the gdmflexiserver package or maybe just make the install script to add this line (like this?) :
echo "*newLoginCommand: gdmflexiserver -l -a -c FLEXI_XSERVER" >> /etc/X11/app-defaults/XScreenSaver
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Salix/XFCE as environment for many users

Post by gapan »

witek wrote:And they said, gdmflexiserver is not part of slackware.
Of course.
witek wrote:In such case the maintainer of gdmflexiserver in Salix should include the modified /etc/X11/app-defaults/XScreenSaver in the gdmflexiserver package
No way. Putting xscreensaver configuration in the gdm package doesn't make any sense at all.
witek wrote:or maybe just make the install script to add this line (like this?) :
echo "*newLoginCommand: gdmflexiserver -l -a -c FLEXI_XSERVER" >> /etc/X11/app-defaults/XScreenSaver
Ugly. Very ugly. This would get reverted every time you upgrade the xscreesaver package.

The only way to do it properly is to rebuild the xscreensaver package. And I don't think we should do that. And least I won't do that, I don't think it's important enough to justify rebuilding the package. Give me solutions that involve having less things to maintain, not more. A wiki page should be enough.
Image
Image
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Salix/XFCE as environment for many users

Post by JRD »

It could be just done at starting, the /etc/rc.d/rc.something, like /etc/rc.d/rc.xscreensavergdm which checks if gdmflexiserver is avaialble, if xscreensaver is available, then, using a variable posistionned to "yes" or "no" it will sed-add or sed-remove the mentionned line.
This way, it is simple, easy, and non-obstrusive.
Image
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Salix/XFCE as environment for many users

Post by Shador »

Sorry, but this solution seems even much worse and also hacky to me.

Imagine a user who installed gdm and xscreensaver. Now the script would update his settings, but only when he reboots, so there are situations where those changes are not reflected. So that makes it hacky in my view.
To top it off now imagine a user who doesn't want this functionality. He removes the setting and everything works as expected. Now he reboots and the script resets it again. Nobody would guess there's some script being run during startup that claims to know what he wants. Very very bad imho.

I can see just no solution without reasoning with upstream. Even replacing the package introduces at one hand an unnecessary maintenance overhead, but even worse diverges us from Slackware. If we start doing that, where to draw the line?
Image
Post Reply