This is fixed in Groovy. I will prepare a fix for Focal.

** Description changed:

+ [Impact]
+ 
+ logind sessions have string IDs. When constructing the D-Bus path of a
+ session, systemd uses bus_label_escape() function. That function escapes
+ everything that is not a-zA-Z0-9 with a '_' plus two hexadecimal digits.
+ It also escapes 0-9 if it's the first character. For example, '6' which
+ is (char)0x36 becomes "_36".
+ 
+ GNOME Flashback did not support this escaping logic, so unlocking did
+ not work in some cases.
+ 
+ [Test Case]
+ 
+ 1. Lock screen.
+ 2. Press button "Switch user...".
+ 3. Type username and password.
+ 4. Screensaver does not unlock the current session and shows unlock dialog.
+ 
+ [Where problems could occur]
+ 
+ Potential problems will be related to screensaver code. For example, if
+ something goes wrong with systemd D-Bus interface, it will not work.
+ 
+ [Other Info]
+ 
+ Original description:
+ 
  My OS:
  lsb_release -rd
  Description:  Ubuntu 20.04.1 LTS
  Release:      20.04
  
  If I lock my screen and then press button "Switch User..." and again type my 
login and pass, screensaver does not unlock my current session and shows unlock 
dialog. This is because of incorrect path of session in 
libscreensaver/gf-listener.c.
  To fix this problem should add "_3" to path. I create a patch which fixes 
problem.
- 
- --- a/gnome-flashback/libscreensaver/gf-listener.c
- +++ b/gnome-flashback/libscreensaver/gf-listener.c
- @@ -436,7 +436,7 @@
-  
-    g_debug ("Session id: %s", session_id);
-  
- -  path = g_strdup_printf ("%s/%s", LOGIN_SESSION_DBUS_PATH, session_id);
- +  path = g_strdup_printf ("%s/_3%s", LOGIN_SESSION_DBUS_PATH, session_id);
-    g_free (session_id);
-  
-    gf_login_session_gen_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,

** Also affects: gnome-flashback (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: gnome-flashback (Ubuntu)
       Status: Confirmed => Fix Released

** Changed in: gnome-flashback (Ubuntu Focal)
     Assignee: (unassigned) => Dmitry Shachnev (mitya57)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1894213

Title:
  gnome-flashback libscreensaver use wrong session path on ubuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-flashback/+bug/1894213/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to