gnome-flashback-metacity and gedit failed after change language on ubuntu 18.04 ~ 22.04 - need help

Bug #2005116 reported by Jesse Stone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Flashback
Fix Released
Unknown
gnome-flashback (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. install ubuntu 18.04.5 with USB Non-uefi boot and press space key select language to english as default
2. sudo dpkg-reconfigure dash -> No
3. sudo apt install lightdm
4. sudo dpkg-reconfigure -> lightdm
5. sudo apt install gnome-session-flashback
6.
update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/lib/gnome-flashback/gnome-flashback-metacity 60
7. sudo passwd root
8. sudo gedit /root/.profile
mesg n || true change -> tty -s && mesg n
9.
sudo sh -c 'echo "greeter-show-manual-login=true" >> /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf'
10.
sudo gedit /etc/pam.d/gdm-autologin
comment # auth required pam_succeed_if.so user != root quiet_success
11.
sudo gedit /etc/pam.d/gdm-password
comment # auth required pam_succeed_if.so user != root quiet_success
12. sudo apt remove gdm3
13. reboot and root login, session select gnome-session-flashback. Still OK now
14. [Region & Language] -> [install / remove languages] -> check box enable Chinese tradition
15. logout & root login
16. [Region & Language] -> languages -> Chinese
17. reboot and login
###########Bug here##########
18. gnome-flashback-metacity failed Now, even select metacity still go to gnome-session
19. event root login, gedit need add sudo or screen messy
(both 18. 19. never happen in ubuntu 16.04.5)

//
try failed:
1. apt purge gnome-session-flashback
2. apt autoremove
3. apt autoclean
4. apt install --reinstall lightdm
5. apt install --reinstall gnome-session-flashback

//
ProblemType: Bug
DistroRelease: Ubuntu 18.04.5
Architecture: amd64
CurrentDesktop: GNOME-Flashback:GNOME

//fire a bug here too
https://gitlab.gnome.org/GNOME/gnome-flashback/-/issues/88

Jesse Stone (feelthat)
description: updated
Jesse Stone (feelthat)
description: updated
affects: ubuntu → gnome-panel (Ubuntu)
Jesse Stone (feelthat)
affects: gnome-panel (Ubuntu) → metacity (Ubuntu)
description: updated
description: updated
Jesse Stone (feelthat)
description: updated
Jesse Stone (feelthat)
description: updated
summary: gnome-flashback-metacity and gedit failed after change language on
- ubuntu 18.04
+ ubuntu 18.04 - need help
description: updated
Jesse Stone (feelthat)
affects: metacity (Ubuntu) → gnome-flashback (Ubuntu)
summary: gnome-flashback-metacity and gedit failed after change language on
- ubuntu 18.04 - need help
+ ubuntu 18.04 ~22.04 - need help
summary: gnome-flashback-metacity and gedit failed after change language on
- ubuntu 18.04 ~22.04 - need help
+ ubuntu 18.04 ~ 22.04 - need help
Jesse Stone (feelthat)
description: updated
description: updated
description: updated
Jesse Stone (feelthat)
description: updated
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Does this problem reproduce in 22.04 or a newer release? If yes, can you update the test instructions?

Are all steps really necessary to reproduce it?

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

You are not supposed to run session as root!

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

15. and 17. might show your problem... Logging with root likely has changed permissions for important files in such way that regular user can no longer access them. That could be reason why logging as non-root user fails in step 17.

Revision history for this message
Jesse Stone (feelthat) wrote (last edit ):

(only one way can found bug is whole system backup and compare with unchange vs changed language
gedit also have problem.)

I need compile c++ code for arm target machine, so need root login
in 18.04 x64 run failed when change english to chinese, I test many times and happened
select metacity session failed and show in gnome-session in root logiin

I try apt install compiz and select it, still show gnome-session

anyone can help, metacity session can not run in root login~~~after change language

Revision history for this message
Jesse Stone (feelthat) wrote (last edit ):

I will refer this and try to modify them in my PC
https://github.com/bugi/xsession-gnome-flashback

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

I doubt you need root to compile code! Once again - you are not supposed to run session as root. It is not supported!

Revision history for this message
Jesse Stone (feelthat) wrote :

PLZ supported well as ubuntu 16.04 in root!!!

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

It has never been supported! There is no reason to run session as root, especially if you don't know what you are doing.

Revision history for this message
Jesse Stone (feelthat) wrote (last edit ):

try failed when change --session in /usr/lib/gnome-flashback/gnome-flashback-metacity

//
found
/etc/X11/Xsession.d/00upstart use $DESKTOP_SESSION

so I trace $DESKTOP_SESSION variable
It set in lightdm in source https://github.com/canonical/lightdm

dmrc.c
dmrc_load
~/.dmrc

user-list.c
priv->session = g_key_file_get_string (dmrc, "Desktop", "Session", NULL);
const gchar *session = priv->session;

seat.c
session_set_env (session, "DESKTOP_SESSION", session_name);

build install to /usr/sbin/lightdm

I guess it may lightdm execute problem

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

Look in systemd journal after failed login to see what is actually failing...

Changed in gnome-flashback:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.