Root Terminal Emulator

Kali Linux has menu item named

“Root Terminal Emulator”

I want the same in Fedora.

Created .desktop file with line
"Exec= sudo qterminal”

but it doesnt work.

How to do it right?

Thanx.

P.S.
System = Fedora 38 LXQT

$ pkexec qterminal

qt.qpa.xcb: could not connect to display

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.

Aborted (core dumped)

[archer@DELLV ~]$


$ rpm -qa | grep -i xcb

libxcb-1.13.1-11.fc38.x86_64

xcb-util-keysyms-0.4.1-2.fc38.x86_64

xcb-util-0.4.1-2.fc38.x86_64

xcb-util-image-0.4.1-2.fc38.x86_64

xcb-util-renderutil-0.3.10-2.fc38.x86_64

xcb-util-wm-0.4.2-2.fc38.x86_64

xcb-util-cursor-0.1.4-2.fc38.x86_64

libX11-xcb-1.8.6-1.fc38.x86_64

[archer@DELLV ~]$

Change the exec line to Exec=qterminal -e sudo -i. This might ask for a password depending on your sudo configuration and then will spawn a root shell.

1 Like

works.

Thanx.