You are not logged in.

#1 2025-08-09 03:03:33

RejonaldoGato
Member
Registered: 2025-08-07
Posts: 12

[SOLVED] Gparted doesn't start

[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

#2 2025-08-09 06:28:01

StarWolf3000
Member
Registered: 2025-06-23
Posts: 68

Re: [SOLVED] Gparted doesn't start

gparted

is 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

#3 2025-08-09 06:49:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,265

Re: [SOLVED] Gparted doesn't start

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

#4 2025-08-09 12:53:57

tekstryder
Member
Registered: 2013-02-14
Posts: 508

Re: [SOLVED] Gparted doesn't start

RejonaldoGato wrote:

What i do ?

See:

https://bbs.archlinux.org/viewtopic.php … 4#p2252374

Offline

#5 2025-08-09 19:17:08

RejonaldoGato
Member
Registered: 2025-08-07
Posts: 12

Re: [SOLVED] Gparted doesn't start

StarWolf3000 wrote:
gparted

is 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

#6 2025-08-09 19:48:09

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,265

Offline

Board footer

Powered by FluxBB