Bug 2208727 - In xfe "New root window" not functional
Summary: In xfe "New root window" not functional
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: xfe
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL: https://sourceforge.net/p/xfe/bugs/273/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-20 03:18 UTC by Ian Laurie
Modified: 2023-05-24 00:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-23 11:49:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Laurie 2023-05-20 03:18:51 UTC
In xfe-1.45-4.fc38.x86_64 the "shift F3" or "New root window" is not functional.

Reproducible: Always

Steps to Reproduce:
1. Launch xfe
2. Try to open a new window as root.
3.
Actual Results:  
Nothing happens.

Expected Results:  
Should launch a new window with root access.

The file org.xfe.root.policy exists in /usr/share/polkit-1/actions so not sure what's going on.

If I manually run "pkexec /usr/libexec/xfe/xfe" it will launch as root after asking me for a password.

Comment 1 Mamoru TASAKA 2023-05-21 12:55:21 UTC
I cannot reproduce this. "New root window" is functional (although I won't use xfe as root)

Can you check Edit -> Preferences -> Modes -> Root mode and if "Allow root mode" is checked and "using pkexec" is selected?

Comment 2 Ian Laurie 2023-05-21 21:32:18 UTC
Yes those are my settings.

A bit later today I will be able to test this on another system to see if the problem is localized to just this one.

Note I am running the Xfce desktop environment on both systems.

Comment 3 Ian Laurie 2023-05-21 23:15:07 UTC
I have the same issue on the other system, in that default settings do not work.

However, I can make it work by selecting "Authentication using sudo" and editing the command to be "sudo -b /usr/libexec/xfe/xfe".  This hack works on both systems.

Comment 4 Mamoru TASAKA 2023-05-22 09:11:36 UTC
Ahhh........


For "Authentication using pkexec", can you try if you launch xfe-xfe from "gnome-terminal"? (really "gnome-terminal")

Comment 5 Ian Laurie 2023-05-22 09:32:12 UTC
OK I installed gnome-terminal.

From inside gnome-terminal, if I try run "pkexec xfe-xfe" I get the dialog asking for a password, then after I get this error in the terminal:

No protocol specified
FXApp::openDisplay: unable to open display :0.0

However, if I run "pkexec /usr/libexec/xfe/xfe" it asks for the password then launches xfe as root after showing the root warning dialog box.

Comment 6 Mamoru TASAKA 2023-05-22 09:51:59 UTC
No, I am not saying that.
Would you try lauching xfe-xfe as normal user from gnome-terminal, then on xfe-xfe gui, try opening a new window as root?

Comment 7 Ian Laurie 2023-05-22 09:59:44 UTC
Using "Authentication using pkexec" mode, if I launch xfe-xfe from insider gnome-terminal, I can then open a window as root.

However the same trick doesn't work if I launch xfe-xfe from xfce4-terminal.

Comment 8 Mamoru TASAKA 2023-05-22 10:35:57 UTC
Okay.... now I've understood what is happening, but umm..........

Comment 9 Mamoru TASAKA 2023-05-23 11:49:27 UTC
Closing as UPSTREAM. This requires upstream work.
https://sourceforge.net/p/xfe/bugs/273/

Comment 10 Ian Laurie 2023-05-24 00:15:27 UTC
Thanks for reporting upstream, I'll monitor progress there.


Note You need to log in before you can comment on or make changes to this bug.