You are not logged in.
I love my XFCE desktop, but I hate not being able to switch users or lock the screen (I use LightDM). I Googled for a while now, and there doesn't seem to be any solution to this problem except for using a GDM-only applet that looks quite out of place (and can't lock the screen).
Since there isn't a way to do fast user switching, does anyone have any information about hacking with the logout application? If XFCE had multi-user capabilities, it would be my perfect lightweight DE.
Anyone up for this?
Last edited by Blender (2011-09-29 17:16:59)
Offline
I distinctly remember Xubuntu having the option to switch users, but I guess that was through GDM. However, it did integrate into the Xfce logout/shutdown/hibernate/suspend pane.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Yes, the Xubuntu one is a distro patch: http://bazaar.launchpad.net/~ubuntu-bra … alog.patch
Basically they edit xfce4-session by adding in the switch user button and giving it a callback when clicked. The callback tells glib to execute the command line program
gdmflexiserver --startnew
. If you know the LightDM equivalent of that command, adding this in would be simple.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
According to Wikipedia, LightDM is going to be the default dm for ubuntu and xubuntu 11.10. I can't imagine them forsaking a fast user switch function. Maybe they have already solved the problem for you.
Edit: Doh! Ninja'd, and with superior firepower to boot!
Last edited by alphaniner (2011-09-29 18:44:38)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
A bit rough, but I've added all of it in. Thanks @ConnorBehan. I had to download all the new Ubuntu patches, but they aren't much different.
Now I just have to make this thing work!
I'll be submitting this package to the AUR if I ever get it to work, as I'm testing this thing with PKGBUILDs.
Last edited by Blender (2011-10-01 00:32:04)
Offline
Well, I officially am stuck.
Does anybody with LightDM knowledge know the command to trigger the lockscreen or the user switching screen? I cannot find a single thing about this on the internet...
Offline
Using Gdm i can't lock the screen under xfce
Offline
You can, it's just not a button click away. I think this command should do it:
gnome-screensaver-command -l
Well, I guess I'll start with GDM. I'll release a PKGBUILD later today with support for GDM, as I can at least lock and switch users with a pair of commands.
Offline
Ok thanks, i've seen that using new gdm if i exit session, when i log in i obtain a faked xfce session, with only one desktop and no window decorator for example
Offline
Hmm, do you have your .xinitrc setup? I can't really help you here, as I don't use GDM right now, but I'll guess it has something to do with maybe your .xinitrc. I'll check out GDM's treatment of this when I have time.
Offline
:S Yeah, a cursory look at the LightDM manpage doesn't show any user switching command. You might have to experiment with the API. If you create a new greeter and call "lightdm_greeter_authenticate" on it with NULL as the second argument, maybe that will work? It says the default is to prompt for a new username.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
I emailed the LightDM developers and they said that LightDM doesn't handle the lockscreen, and there seems to be a binary in the LightDM folder similar to:
gdmflexiserver
I'm just finishing up with the code, and once that's done I'll try and implement a few more DMs.
Offline
AAAAND, we have takeoff! The logout dialog is fully functional now. I've added the ability to remove/add the new buttons via the Settings Editor (under /general/), and it seems to work.
I'll just fix the way it looks and submit it.
Offline
GDM + xscreensaver does the trick...
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
GDM + xscreensaver does the trick...
So... after you executed xscreensaver-command -lock, how do you switch users? With gdmflexiserver?
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
For anyone that's interested, here's an AUR package of the modified code (it's a patch file, basically): https://aur.archlinux.org/packages.php?ID=52816
It replaces and provides xfce4-session, so it should install without any problems.
Here's a screenshot:
It integrates with xflock4 and gdmflexiserver so it should work with just about any configuration you throw at it.
Any input is welcome!
Last edited by Blender (2011-10-01 00:32:54)
Offline
Please resize your screenshots to thumbs https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
graysky wrote:GDM + xscreensaver does the trick...
So... after you executed xscreensaver-command -lock, how do you switch users? With gdmflexiserver?
Yes, sorry. Details: Compiling with the "--with-login-manager" flag will make a button called "New Login" that points to /usr/bin/gdmflexiserver to allow user switching if the using gdm as the greeter. This would be value added for folks using xfce4, lxde, openbox, etc. since gnome-screensaver does not provide functionality on non-gnome systems with version 3 (depends on gnome-session).
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
[deleted]
Last edited by Blender (2011-10-01 00:34:49)
Offline
I make a small off topic, do you know how can i disable xfce4-panel? Because i'd like to use only awn, i've thought to disable it by adding a voice "killall xfce4-panel" during the start of session, but is there any other more elegant way? thanks!
Edit: i've fixed: just edit this file /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml by removing the line "<value type="string" value="xfce4-panel"/>" and maybe you have to remove .cache/session directory in home
Last edited by toketin (2011-10-01 12:53:08)
Offline
Leonid.I wrote:graysky wrote:GDM + xscreensaver does the trick...
So... after you executed xscreensaver-command -lock, how do you switch users? With gdmflexiserver?
Yes, sorry. Details: Compiling with the "--with-login-manager" flag will make a button called "New Login" that points to /usr/bin/gdmflexiserver to allow user switching if the using gdm as the greeter. This would be value added for folks using xfce4, lxde, openbox, etc. since gnome-screensaver does not provide functionality on non-gnome systems with version 3 (depends on gnome-session).
Aha... thank you
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Sorry for the necrobump but since this is the most contemporary thread on the topic, I wanted to post a solution to this problem (under xfce 4.10):
# ln -s /usr/lib/lightdm/lightdm/gdmflexiserver /usr/bin/gdmflexiserver
I will also update the xfce4 and lightdm wiki pages.
/me ducks for cover.
Last edited by graysky (2012-05-23 20:23:11)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline