You are not logged in.
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_SWITCHbut 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
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-jpegLast edited by graysky (2013-08-06 20:37:22)
Offline
You're right, I forgot the ./configure options ![]()
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
Bump
Offline
Bump
Offline
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
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
@corax - It's a wiki, add it yourself ![]()
Offline
I know, just asking if it's worth it ^^
I'll add it in the wiki, topic closed.
Offline