You are not logged in.

#1 2011-09-29 17:13:39

Blender
Member
Registered: 2011-05-11
Posts: 36

[XFCE] Anybody want to help me make a user switching patch?

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

#2 2011-09-29 17:18:59

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#3 2011-09-29 18:35:38

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#4 2011-09-29 18:41:46

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#5 2011-09-30 03:01:35

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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!

GxZ4t.png

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

#6 2011-09-30 15:50:20

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#7 2011-09-30 16:39:25

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 326

Re: [XFCE] Anybody want to help me make a user switching patch?

Using Gdm i can't lock the screen under xfce

Offline

#8 2011-09-30 16:42:13

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#9 2011-09-30 16:44:45

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 326

Re: [XFCE] Anybody want to help me make a user switching patch?

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 hmm

Offline

#10 2011-09-30 16:49:05

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#11 2011-09-30 19:00:04

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [XFCE] Anybody want to help me make a user switching patch?

: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

#12 2011-09-30 19:16:46

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#13 2011-09-30 20:15:04

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#14 2011-09-30 20:16:18

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

Re: [XFCE] Anybody want to help me make a user switching patch?

GDM + xscreensaver does the trick...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#15 2011-09-30 20:55:27

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [XFCE] Anybody want to help me make a user switching patch?

graysky wrote:

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

#16 2011-09-30 23:48:13

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

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:

X4F38.png

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

#17 2011-10-01 00:01:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,679
Website

Re: [XFCE] Anybody want to help me make a user switching patch?

Please resize your screenshots to thumbs https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2011-10-01 00:11:08

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

Re: [XFCE] Anybody want to help me make a user switching patch?

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).

https://bugs.archlinux.org/task/25617


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#19 2011-10-01 00:34:14

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: [XFCE] Anybody want to help me make a user switching patch?

[deleted]

Last edited by Blender (2011-10-01 00:34:49)

Offline

#20 2011-10-01 12:26:36

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 326

Re: [XFCE] Anybody want to help me make a user switching patch?

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

#21 2011-10-03 16:13:00

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [XFCE] Anybody want to help me make a user switching patch?

graysky wrote:
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).

https://bugs.archlinux.org/task/25617

Aha... thank you smile


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#22 2012-05-23 20:13:13

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

Re: [XFCE] Anybody want to help me make a user switching patch?

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 packagesZsh and other configs

Offline

Board footer

Powered by FluxBB