Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open as Root doesn't work on Wayland #3279

Closed
Lassebq opened this issue Jul 25, 2023 · 8 comments
Closed

Open as Root doesn't work on Wayland #3279

Lassebq opened this issue Jul 25, 2023 · 8 comments

Comments

@Lassebq
Copy link

Lassebq commented Jul 25, 2023

Distribution

Arch Linux 6.4.4.arch1-1

Package version

5.8.4-1

Frequency

Always

Bug description

Open as root doesn't work on wayland even with xorg-xhost installed.

Steps to reproduce

  1. Run nemo
  2. Open context menu on any folder
  3. Click Open as Root
  4. Polkit shows up, asks password, nothing happens
Authorization required, but no authorization protocol specified

Could not parse arguments: Cannot open display: 

This is what gets printed to stdout

Expected behavior

stdout should print

localuser:root being added to access control list

And the folder should open with elevated privileges

Additional information

No response

@dominichayesferen
Copy link

dominichayesferen commented Jul 26, 2023

#2929

Use admin://PATHHERE as an alternative (CTRL+L or use the toolbar button to switch to path input).

@Lassebq
Copy link
Author

Lassebq commented Jul 26, 2023

Alright, but I still don't understand why #2929 was closed, if the option is there it should work. For example, gparted makes use of xorg-xhost, which lets it start on Wayland without issues. (Without this package it fails with the same error as Nemo)

@leigh123linux
Copy link
Contributor

Alright, but I still don't understand why #2929 was closed, if the option is there it should work. For example, gparted makes use of xorg-xhost, which lets it start on Wayland without issues. (Without this package it fails with the same error as Nemo)

I really don't see why it's the responsibility of all the apps to fix this, shouldn't wayland devs submit patches for pkexec or whatever?
Gparted added a hack to workaround it https://github.com/GNOME/gparted/blob/master/gparted.in#L60

@mtwebster Can we add something to hide 'open as root' under wayland.

@dominichayesferen
Copy link

dominichayesferen commented Jul 28, 2023

Can we add something to hide 'open as root' under wayland.

What if it just redirected the current folder view to the admin:// equivalent under Wayland, instead of being completely removed, since admin:// effectively does the same job anyway, just in the userland Nemo window instead?

@Lassebq
Copy link
Author

Lassebq commented Aug 2, 2023

I support suggested solution

@Lassebq
Copy link
Author

Lassebq commented Aug 3, 2023

That didn't mean I'm fine with this issue closed. I was expecting it to stay open until suggested fix is implemented either by developers or as a PR

@Lassebq
Copy link
Author

Lassebq commented Aug 3, 2023

Oh, nevermind, there's #3259.

@mtwebster
Copy link
Member

It was automatically linked when I closed the issue, but here it is again I guess: 86830eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants