You are not logged in.
Pages: 1
[laura@archlaura ~]$
sudo gparted
[sudo] password for Laura:
Authorization required, but no authorization protocol specified (gpartedbin:1107): Gtk-WARNING **: 23:00:24.171: cannot open display: :0
[laura@archlaura ~]$
What i do ?
Last edited by RejonaldoGato (2025-08-09 21:16:03)
Offline
gpartedis a partition manager from GNOME that requires a GUI. Do you have a display server and window manager running?
Mainboard: GIGABYTE B550 AORUS ELITE V2 | CPU: Ryzen 7 5800X | RAM: 32 GB
GPU: GeForce RTX 4060 8 GB (580.119.02 proprietary) | Display: BenQ BL2405 1920x1080
Kernel: 6.18.8 stable | Boot Manager: GRUB2 | DE: KDE Plasma | Login Manager: SDDM | Compositor: KWin
Offline
Even if, sudo will drop the necessary environment by default.
gparted comes w/ a polkit rule to elevate itself, if you don't have polkit, you'll have to inherit the (necessary) environment variables (DISPLAY and/or WAYLAND_DISPLAY, perhaps XAUTHORITY and DBUS_SESSION_BUS_ADDRESS) from your GUI session.
https://wiki.archlinux.org/title/Sudo#E … _variables
nb. that IN MOST CASES RUNNING GUI APPLICATIONS A ROOT IS A TERRIBLE IDEA (arguably even gparted should™ not require this but it is what it is…)
Sanity check: what are you going to do with it?
You cannot resize active filesystems in most cases and in most other cases that's not a good idea either.
Offline
Offline
gpartedis a partition manager from GNOME that requires a GUI. Do you have a display server and window manager running?
I'm using Sway, I have Polkit installed
pacman -Qs polkit
local/lib32-polkit 126-1 Application development toolkit for controlling system-wide privileges
local/polkit 126-2 Application development toolkit for controlling system-wide privileges
local/polkit-qt6 0.200.0-1 A library that allows developers to access PolicyKit API with a nice Qt-style API
I'll read the links
Offline
Offline
Pages: 1