You are not logged in.

#1 2013-08-06 20:28:44

Corax
Member
Registered: 2013-08-06
Posts: 31

[SOLVED] XScreenSaver and newLogin

Hello,

I experience some difficulties with XScreenSaver, using LXDM and Xfce. Indeed, I'd like to have the New Login button in XScreenSaver prompt, using the config line :

newLoginCommand: lxdm -c USER_SWITCH

but I have issues with both config files :

  • Using ~/.xscreensaver, it works (and I don't even have to restart XScreenSaver), BUT the file is overwritten each time I use xscreensaver-demo... So it's definitely not handy.

  • Using /usr/share/X11/app-defaults/XScreenSaver, it's even worse, because even after rebooting the button doesn't appear.

Regarding the first issue, it seems it's a known one, and (how great) it looks like it won't be fixed (see here)...
Regarding the second one, it isn't the "standard path" for the default config file of XScreenSaver (/usr/lib/X11/app-defaults/XScreenSaver according to the man), but I guess it's configured that way under Arch so it shouldn't be a problem...

Forgot to mention it, I use the xscreensaver-arch-logo package from the AUR, but I don't think it should be an issue.

Thanks in advance for your help.

EDIT: solved, see here https://bbs.archlinux.org/viewtopic.php … 6#p1312736

Last edited by Corax (2013-08-16 15:33:43)

Offline

#2 2013-08-06 20:34:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] XScreenSaver and newLogin

Odd.  I use the AUR package and I have the 'new login' button when I lock my screen.  I can also use the command you posted.  ~/.xscreensaver does get updated (overwritten) when you use the demo program but only if you make changes; I believe this is the expected behavior. 

EDIT: The Arch package moves the file you mentioned as does the AUR package, from the PKGBUILD:

 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libexecdir=/usr/lib --with-x-app-defaults=/usr/share/X11/app-defaults \
    --with-pam --with-login-manager --with-gtk --with-gl \
    --without-gle --with-pixbuf --with-jpeg

Last edited by graysky (2013-08-06 20:37:22)

Offline

#3 2013-08-06 21:15:28

Corax
Member
Registered: 2013-08-06
Posts: 31

Re: [SOLVED] XScreenSaver and newLogin

You're right, I forgot the ./configure options wink

Regarding ~/.xscreensaver, by overwritten I mean any custom command such as the newLoginCommand is gone, since the config file is rewritten from scratch, so I can't put the newLoginCommand line here. Do you also use LXDM? 'cause with GDM or KDM it works out of the box (at least it should), so you don't need to change any config file.

I also forgot to mention it, but I removed the gdm dependency when building xscreensaver-arch-logo (which is not needed by the vanilla package btw), keeping the --with-login-manager option.

Offline

#4 2013-08-09 20:21:31

Corax
Member
Registered: 2013-08-06
Posts: 31

Re: [SOLVED] XScreenSaver and newLogin

Bump

Offline

#5 2013-08-15 17:21:05

Corax
Member
Registered: 2013-08-06
Posts: 31

Re: [SOLVED] XScreenSaver and newLogin

Bump

Offline

#6 2013-08-15 23:20:49

polson136
Member
Registered: 2012-03-03
Posts: 39

Re: [SOLVED] XScreenSaver and newLogin

Try using x resources (https://wiki.archlinux.org/index.php/Xd … _resources)

According to the xscreensaver man page, X resources can be specified to set any option that appears in the config file. However, any options in the config file override those in the X resource database.

In the past, I used the version of xscreensaver in the official repositories. When I first tried this, xscreensaver ignored all xrdb settings if a config file was present. At some point, that changed, and it could get options from both sources at once.

You should be able to do this by putting this in ~/.Xresources:

xscreensaver.newLoginCommand: lxdm -c USER_SWITCH

, then run xrdb ~/.Xresources. Whether or not it actually works depends on what version of xscreensaver you have. If it doesn't work, try renaming the config file to make sure that the issue is not my spelling (I have not tested these settings).

Offline

#7 2013-08-16 10:58:16

Corax
Member
Registered: 2013-08-06
Posts: 31

Re: [SOLVED] XScreenSaver and newLogin

Thank you very much, that solved my problem!

Using XScreenSaver 5.22, it seems indeed that unlike what https://wiki.archlinux.org/index.php/Xd … _resources says, .Xresources doesn't get ignored if .xscreensaver is present.

However, once you've merged .Xresources (using xrdb -merge ~/.Xresources), you have to kill and restart XScreenSaver for the changes to take effect (or reboot, obviously).

Maybe this tip should be added to https://wiki.archlinux.org/index.php/XScreenSaver?

Offline

#8 2013-08-16 11:16:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] XScreenSaver and newLogin

@corax - It's a wiki, add it yourself tongue

Offline

#9 2013-08-16 15:32:24

Corax
Member
Registered: 2013-08-06
Posts: 31

Re: [SOLVED] XScreenSaver and newLogin

I know, just asking if it's worth it ^^

I'll add it in the wiki, topic closed.

Offline

Board footer

Powered by FluxBB