You are not logged in.
Good day everyone,
I need your help.
Recently I've been wanting to downsize my partitions, using partitionmanager. However, when I want to run
partitionmanager
as root it refuses to launch the GUI and throws the following ERRORS:
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
zsh: IOT instruction (core dumped) partitionmanager
What bothers me is that it launches perfectly fine when running without sudo privileges, but I cannot do anything to my partitions without those permissions.
I've updated my system via pacman, I've tried reinstalling partitionmanager but it doesn't seem to help. I surmise that it must have something to do with xorg or my display manager but I haven't been able to fix it. Therefore I'm asking for your help.
I'm running Arch with I3+Polybar (WM) and Lightdm with an NVIDIA RTX 3060Ti
I'm willing to provide additional logs and ressources if needed
Any help and or leads would be much appreciated.
Kind Regards, Alberto
Offline
Partitionmanager should and would be using polkit to elevate priviledges properly and on demand and not for the GUI code. How are you starting i3? Post your .xinitrc if via startx. Other than that make sure polkit is installed, your user is in the wheel group, and you launch a proper polkit authentication agent: https://wiki.archlinux.org/title/Polkit … ion_agents
Offline
...but I cannot do anything to my partitions without those permissions...
In addition to what V1del mentioned. even with elevated privileges, you still won't be able to do anything with your partitions if they are mounted, which is most likely the case if you;re trying to make changes while booted into your installed system.
Offline
Partitionmanager should and would be using polkit to elevate priviledges properly and on demand and not for the GUI code. How are you starting i3? Post your .xinitrc if via startx. Other than that make sure polkit is installed, your user is in the wheel group, and you launch a proper polkit authentication agent: https://wiki.archlinux.org/title/Polkit … ion_agents
In my /etc/X11/xinit/xinitrc.d folder I have 3 files : 40-libcanberra-gtk-module.sh 50-systemd-user.sh 80xapp-gtk3-module.sh
40-libcanberra-gtk-module.sh:
#!/bin/sh
case "${DESKTOP_SESSION-}" in
gnome*) # Done by gnome-settings-daemon
;;
*)
# Extra check in case DESKTOP_SESSION is not set correctly
if [ -z "${GNOME_DESKTOP_SESSION_ID-}" ]; then
GTK_MODULES="${GTK_MODULES:+$GTK_MODULES:}canberra-gtk-module"
export GTK_MODULES
fi
;;
esac
50-systemd-user.sh:
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
systemctl --user import-environment DISPLAY XAUTHORITY
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
dbus-update-activation-environment DISPLAY XAUTHORITY
fi
80xapp-gtk3-module.sh:
#!/bin/bash
# This file is sourced by xinit(1) or a display manager's Xsession, not executed.
if [ -z "$GTK3_MODULES" ] ; then
GTK3_MODULES="xapp-gtk3-module"
else
GTK3_MODULES="$GTK3_MODULES:xapp-gtk3-module"
fi
export GTK3_MODULES
I've got polkit since it's a dependency to some of the packages I use. Also, this is the output from Xsession from /etc/lightdm/Xsession if it might help:
#!/bin/sh
#
# LightDM wrapper to run around X sessions.
echo "Running X session wrapper"
# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
if [ -f "$file" ]; then
echo "Loading profile from $file";
. "$file"
fi
done
# Load resources
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
if [ -f "$file" ]; then
echo "Loading resource: $file"
xrdb -merge "$file"
fi
done
# Load keymaps
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
if [ -f "$file" ]; then
echo "Loading keymap: $file"
setxkbmap `cat "$file"`
XKB_IN_USE=yes
fi
done
# Load xmodmap if not using XKB
if [ -z "$XKB_IN_USE" ]; then
for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
if [ -f "$file" ]; then
echo "Loading modmap: $file"
xmodmap "$file"
fi
done
fi
unset XKB_IN_USE
# Run all system xinitrc shell scripts
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
for script in $xinitdir/*; do
echo "Loading xinit script $script"
if [ -x "$script" -a ! -d "$script" ]; then
. "$script"
fi
done
fi
# Run user xsession shell script
script="$HOME/.xsession"
if [ -x "$script" -a ! -d "$script" ]; then
echo "Loading xsession script $script"
. "$script"
fi
echo "X session wrapper complete, running session $@"
exec $@
Offline
I've got polkit
but
make sure polkit is installed, your user is in the wheel group, and you launch a proper polkit authentication agent
Offline