No Authentication GUI at Startup

I recently installed LXQt via Architect (the minimal version, as the full version failed). After a few hours configuring it to my taste, I had one remaining crazy-making issue that seems not to be covered here on the forum -- or else I just don't know how to search for it.

$ inxi -F
System:
  Host: manjaro-samsung-lxqt Kernel: 5.2.4-1-MANJARO x86_64 bits: 64 
  Desktop: LXQt 0.14.1 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: SAMSUNG 
  product: 355V4C/355V4X/355V5C/355V5X/356V4C/356V4X/356V5C/356V5X/3445VC/3445VX/3545VC/3545VX 
  v: P04ABG.007.CP serial: <root required> 
  Mobo: SAMSUNG model: NP355E5C-A01US v: BOARD REVISION 00 
  serial: <root required> UEFI: American Megatrends v: P04ABG 
  date: 01/29/2013 
Battery:
  ID-1: BAT1 charge: 47.5 Wh condition: 47.5/48.8 Wh (97%) 
CPU:
  Topology: Dual Core model: AMD E2-1800 APU with Radeon HD Graphics 
  bits: 64 type: MCP L2 cache: 512 KiB 
  Speed: 850 MHz min/max: 850/1700 MHz Core speeds (MHz): 1: 850 2: 982 
Graphics:
  Device-1: AMD Wrestler [Radeon HD 7340] driver: radeon v: kernel 
  Display: x11 server: X.org 1.20.5 driver: ati,radeon unloaded: modesetting 
  resolution: <xdpyinfo missing> 
  Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:
  Device-1: AMD Wrestler HDMI Audio driver: snd_hda_intel 
  Device-2: AMD FCH Azalia driver: snd_hda_intel 
  Sound Server: ALSA v: k5.2.4-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: 20:89:84:0f:c0:c7 
  Device-2: Qualcomm Atheros AR9485 Wireless Network Adapter driver: ath9k 
  IF: wlp3s0 state: down mac: 50:b7:c3:b5:bb:0f 
  Device-3: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb 
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:
  Local Storage: total: 465.76 GiB used: 54.68 GiB (11.7%) 
  ID-1: /dev/sda vendor: Seagate model: ST500LM012 HN-M500MBB 
  size: 465.76 GiB 
Partition:
  ID-1: / size: 25.83 GiB used: 12.79 GiB (49.5%) fs: ext4 dev: /dev/sda5 
  ID-2: /home size: 121.58 GiB used: 38.64 GiB (31.8%) fs: ext4 
  dev: /dev/sda6 
  ID-3: swap-1 size: 4.10 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda4 
Sensors:
  System Temperatures: cpu: 54.6 C mobo: N/A gpu: radeon temp: 54 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 166 Uptime: 3h 31m Memory: 7.38 GiB used: 2.88 GiB (39.0%) 
  Shell: bash inxi: 3.0.35

I use AirVPN and its AUR GUI frontend, eddie-ui, which I've set to autostart via Session Settings. In order to launch, eddie-ui needs root privilege, and on all my other installs, an authentication GUI launches at startup.

As a test, I also tried starting GParted, which normally asks for root privilege to launch, but I can only launch it with sudo from the terminal since no GUI authentication appears.

Pamac (gtk) DOES launch an authentication GUI when doing anything that needs root permission.

I have lxqt-policykit installed, as well as polkit-qt5.

In the LXQt Session Settings "Basic Settings," PolicyKit handler is checked. Under "Autostart," LXPolKit is NOT checked by default. When I set LXPolKit to autostart, I get an error upon reboot:

GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject

A quick internet search shows that this is a common problem, and that unchecking LXPolKit is the solution.

Bottom line is, I could use some help figuring out how to troubleshoot this issue. Thanks in advance!

Is it possible all those are still trying to use something like gksudo or kdesu ?

[ps - just for clarification 'policykit handler' is probably referring to the correct lxqt-policykit while lxpolkit is referring to the lxde one from lxsession .. so its probably correct the way it is]

Thanks for the suggestion regarding gksudo and kdesu.

I could not find a gksudo package, but kdesu was not installed so I installed it and rebooted. I'm still having the same problem, however. Do I need to autostart kdesu, or is there any other configuration I need to do with it?

EDIT: I looked into autostarting kdesu, but /usr/bin does not contain a program by that name.

According to this page -- https://linux.die.net/man/1/kdesu --

This program is meant to be started from the command line or from .desktop files.

Hm ...

I remember this from gufw .. but yeah, lets just see if anything spits out running alone
gparted

GParted would not launch from the menu, but I got this from the command line:

EDIT: It worked for eddie-ui from CLI as well. Just can't launch them from the menu or as autostarted programs.

great - and with credentials it opens fine?

maybe time to see what that menu entry actually is ...

check if you have installed lxqt-sudo

Yes, lxqt-sudo is installed.

remove gksu or anything gnome

gparted should map to /usr/bin/gparted which is a script that should do some voodoo and determine to ask you a password etc to launch /usr/bin/gpartedbin

Please double-check your menu entries or items to see what 'commands' they are actually using ...

Thanks -- gksu-polkit came installed and I removed it when I first encountered this issue. Can't find any other Gnome authentication stuff....

This seems to be the operative section of /usr/bin/gparted:

#  Define base command for executing GParted
#
BASE_CMD="/usr/bin/gpartedbin $*"

#
#  For non-root users try to get authorisation to run GParted as root.
#
if test "x`id -u`" != "x0"; then
	#
	#  If there is no configured SU program run gpartedbin as
	#  non-root to display the graphical error about needing root
	#  privileges.
	#
	if test "xpkexec --disable-internal-agent" = "x"; then
		echo "Root privileges are required for running gparted."
		$BASE_CMD
		exit 1
	fi

	#
	# Interim workaround to allow GParted run by root access to the
	# X11 display server under Wayland.  If configured with
	# './configure --enable-xhost-root', the xhost command is
	# available and root has not been granted access to the X11
	# display via xhost, then grant access.
	#
	ENABLE_XHOST_ROOT=yes
	GRANTED_XHOST_ROOT=no
	if test "x$ENABLE_XHOST_ROOT" = 'xyes' && xhost 1> /dev/null 2>&1; then
		if ! xhost | grep -qi 'SI:localuser:root$'; then
			xhost +SI:localuser:root
			GRANTED_XHOST_ROOT=yes
		fi
	fi

	#
	# Run gparted as root.
	#
	pkexec --disable-internal-agent '/usr/bin/gparted' "$@"
	status=$?

	#
	# Revoke root access to the X11 display, only if we granted it.
	#
	if test "x$GRANTED_XHOST_ROOT" = 'xyes'; then
		xhost -SI:localuser:root
	fi
	exit $status
fi

Not sure what to make of it, though.

EDIT: Apparently the actual menu file is found at /etc/xdg/menus/lxqt-applications.menu, but I only found categories there. Not sure if there's another location I should be looking at.

They seem to be in

/usr/share/applications/lxqt-*.desktop

Hmm... I've got a /usr/share/applications folder, but no /usr/share/applications/lxqt-*.desktop.

In any case, here's the /usr/share/applications/gparted.desktop file:

[Desktop Entry]
Name=GParted
Name[ar]=مُقسِّم‌ج
Name[be]=GParted
Name[bg]=GParted
Name[br]=GParted
Name[bs]=GParted
Name[ca]=GParted
Name[ca@valencia]=GParted
Name[cs]=GParted
Name[da]=GParted
Name[de]=GParted
Name[dz]=ཇི་པར་ཊེཊི།
Name[el]=GParted
Name[en_CA]=GParted
Name[en_GB]=GParted
Name[eo]=GParted
Name[es]=GParted
Name[et]=GParted
Name[eu]=GParted
Name[fa]=GParted
Name[fi]=GParted
Name[fr]=GParted
Name[fur]=GParted
Name[gd]=GParted
Name[gl]=GParted
Name[gu]=GParted
Name[he]=GParted
Name[hr]=GParted
Name[hu]=GParted
Name[id]=GParted
Name[is]=GParted
Name[it]=GParted
Name[ja]=GParted
Name[kk]=GParted
Name[ko]=GParted
Name[lt]=GParted
Name[lv]=GParted
Name[mk]=Гпартед
Name[ml]=ജീപാര്‍ട്ടട്
Name[nb]=GParted
Name[ne]=जिपार्टेड
Name[nl]=GParted
Name[nn]=GParted
Name[oc]=GParted
Name[pa]=GParted
Name[pl]=GParted
Name[pt]=GParted
Name[pt_BR]=GParted
Name[ro]=GParted
Name[ru]=GParted
Name[si]=GParted
Name[sk]=GParted
Name[sl]=GParted
Name[sr]=Гпартед
Name[sr@latin]=Gparted
Name[sv]=GParted
Name[te]=జిపార్టెడ్
Name[th]=GParted
Name[tr]=GParted
Name[uk]=GParted
Name[vi]=GParted
Name[zh_CN]=GParted
Name[zh_HK]=GParted
Name[zh_TW]=GParted
GenericName=Partition Editor
GenericName[ar]=محرر الأقسام
GenericName[be]=Рэдактар раздзелаў
GenericName[bg]=Редактор на дялове
GenericName[br]=Embanner parzhad
GenericName[bs]=Uređivač particija
GenericName[ca]=Editor de particions
GenericName[ca@valencia]=Editor de particions
GenericName[cs]=Editor oddílů
GenericName[da]=Partitioneringsprogram
GenericName[de]=Partitionierungswerkzeug
GenericName[el]=Επεξεργαστής κατατμήσεων
GenericName[en_CA]=Partition Editor
GenericName[en_GB]=Partition Editor
GenericName[eo]=Subdiskoredaktilo
GenericName[es]=Editor de particiones
GenericName[et]=Partitsiooniredaktor
GenericName[eu]=Partizio-editorea
GenericName[fa]=ویرایشگر پارتیشن
GenericName[fi]=Levyosioiden muokkain
GenericName[fr]=Éditeur de partitions
GenericName[fur]=Editôr di partizions
GenericName[gd]=Deasaiche pàirteachaidh
GenericName[gl]=Editor de particións
GenericName[he]=עורך המחיצות
GenericName[hr]=Uređivač particija
GenericName[hu]=Partíciószerkesztő
GenericName[id]=Penyunting Partisi
GenericName[is]=Disksneiðastjóri
GenericName[it]=Editor di partizioni
GenericName[ja]=パーティション・エディター
GenericName[kk]=Қатты диск бөлімдерін басқару
GenericName[ko]=분할 영역 편집기
GenericName[lt]=Skaidinių redaktorius
GenericName[lv]=Nodalījumu redaktors
GenericName[ml]=പാര്‍ട്ടീഷന്‍ സംശോധകന്‍
GenericName[nb]=Partisjonsredigering
GenericName[nl]=Partitiebewerker
GenericName[nn]=Partisjonshandsaming
GenericName[oc]=Editor de particions de GNOME
GenericName[pa]=ਪਾਰਟੀਸ਼ਨ ਐਡੀਟਰ
GenericName[pl]=Edytor partycji
GenericName[pt]=Editor de partições
GenericName[pt_BR]=Editor de Partições
GenericName[ro]=Editor de partiții
GenericName[ru]=Редактор разделов
GenericName[sk]=Editor diskových oddielov
GenericName[sl]=Urejevalnik razdelkov
GenericName[sr]=Уређивач партиција
GenericName[sr@latin]=Uređivač particija
GenericName[sv]=Partitionsredigerare
GenericName[te]=విభజన కూర్పకము
GenericName[th]=เครื่องมือแก้ไขพาร์ทิชัน
GenericName[tr]=Disk Bölümü Düzenleyicisi
GenericName[uk]=Редактор розділів
GenericName[vi]=Ứng dụng sửa phân vùng
GenericName[zh_CN]=分区编辑器
GenericName[zh_HK]=分割區編輯器
GenericName[zh_TW]=分割區編輯器
X-GNOME-FullName=GParted Partition Editor
X-GNOME-FullName[ar]=محرّر الأقسام مُقسِّم‌ج
X-GNOME-FullName[be]=Рэдактар раздзелаў GParted
X-GNOME-FullName[bg]=Редактор на дялове на дискове за GNOME
X-GNOME-FullName[bs]=GParted uređivač particija
X-GNOME-FullName[ca]=Editor de particions GParted
X-GNOME-FullName[ca@valencia]=Editor de particions GParted
X-GNOME-FullName[cs]=Editor oddílů GParted
X-GNOME-FullName[da]=GParted - partitioneringsprogram
X-GNOME-FullName[de]=GParted Partitionierungswerkzeug
X-GNOME-FullName[el]=Επεξεργαστής κατατμήσεων GParted
X-GNOME-FullName[en_CA]=GParted Partition Editor
X-GNOME-FullName[en_GB]=GParted Partition Editor
X-GNOME-FullName[eo]=GParted Subdiskoredaktilo
X-GNOME-FullName[es]=Editor de particiones GParted
X-GNOME-FullName[et]=GParted partitsioonihaldur
X-GNOME-FullName[eu]=GParted partizio-editorea
X-GNOME-FullName[fa]=ویرایشگر پارتیشن GParted
X-GNOME-FullName[fi]=GParted - levyosioiden muokkain
X-GNOME-FullName[fr]=Éditeur de partitions GParted
X-GNOME-FullName[fur]=Editôr di partizions GParted
X-GNOME-FullName[gd]=Deasaiche pàirteachaidh GParted
X-GNOME-FullName[gl]=Editor de particións GParted
X-GNOME-FullName[gu]=GParted પાર્ટીશન સંપાદક
X-GNOME-FullName[he]=עורך המחיצות GParted
X-GNOME-FullName[hr]=GParted uređivač particija
X-GNOME-FullName[hu]=GParted partíciószerkesztő
X-GNOME-FullName[id]=GParted Penyunting Partisi
X-GNOME-FullName[is]=GParted disksneiðastjórinn
X-GNOME-FullName[it]=Editor di partizioni GParted
X-GNOME-FullName[ja]=GParted パーティション編集ツール
X-GNOME-FullName[kk]=GParted бөлімдерді басқарушысы
X-GNOME-FullName[ko]=GParted 분할 영역 편집기
X-GNOME-FullName[lt]=Skaidinių redaktorius „GParted“
X-GNOME-FullName[lv]=GParted nodalījumu redaktors
X-GNOME-FullName[ml]=ജീപാര്‍ട്ടട് പാര്‍ട്ടീഷന്‍ സംശോധകന്‍
X-GNOME-FullName[nb]=GParted partisjonsredigering
X-GNOME-FullName[nl]=GParted partitiebewerker
X-GNOME-FullName[nn]=GParted partisjonshandsaming
X-GNOME-FullName[oc]=Editor de particions de GNOME
X-GNOME-FullName[pa]=ਜੀਪਾਰਟਡ ਪਾਰਟੀਸ਼ਨ ਐਡੀਟਰ
X-GNOME-FullName[pl]=Edytor partycji GParted
X-GNOME-FullName[pt]=Editor de partições GParted
X-GNOME-FullName[pt_BR]=Editor de partições GParted
X-GNOME-FullName[ro]=GParted - Editor de partiții
X-GNOME-FullName[ru]=Редактор разделов GParted
X-GNOME-FullName[sk]=GParted - editor diskových oddielov
X-GNOME-FullName[sl]=GParted urejevalnik razdelkov
X-GNOME-FullName[sr]=Уређивач партиција Гпартед
X-GNOME-FullName[sr@latin]=Uređivač particija Gparted
X-GNOME-FullName[sv]=GParted partitionsredigerare
X-GNOME-FullName[te]=జిపార్టెడ్ విభజన కూర్పకము
X-GNOME-FullName[th]=เครื่องมือแก้ไขพาร์ทิชัน GParted
X-GNOME-FullName[tr]=GParted Disk Bölümü Düzenleyicisi
X-GNOME-FullName[uk]=Редактор розділів GParted
X-GNOME-FullName[vi]=Ứng dụng hiệu chỉnh phân vùng GParted
X-GNOME-FullName[zh_CN]=GParted 分区编辑器
X-GNOME-FullName[zh_HK]=GParted 分割區編輯器
X-GNOME-FullName[zh_TW]=GParted 分割區編輯器
Comment=Create, reorganize, and delete partitions
Comment[ar]=أنشئ الأقسام ونظّمها واحذفها
Comment[be]=Стварыць, пераразмеркаваць альбо выдаліць раздзелы
Comment[bg]=Създаване, подреждане и изтриване на дялове
Comment[br]=Krouiñ, adaozañ ha dilemel ar parzhadoù
Comment[bs]=Kreiranje, reorganiziranje i brisanje particija
Comment[ca]=Creeu, reorganitzeu i suprimiu particions
Comment[ca@valencia]=Creeu, reorganitzeu i suprimiu particions
Comment[cs]=Vytvářejte, přeuspořádávejte a odstraňujte diskové oddíly
Comment[da]=Opret, omorganisér og slet partitioner
Comment[de]=Partitionen erzeugen, reorganisieren und löschen
Comment[el]=Δημιουργία, επεξεργασία και διαγραφή κατατμήσεων
Comment[en_CA]=Create, reorganise, and delete partitions
Comment[en_GB]=Create, reorganise, and delete partitions
Comment[eo]=Krei, reorganizi, kaj forigi subdiskojn
Comment[es]=Cree, reorganice y elimine particiones
Comment[et]=Partitsioonide loomine, muutmine ja kustutamine
Comment[eu]=Sortu, berrantolatu eta ezabatu partizioak
Comment[fa]=ساخت، بازسازی و حذف پارتیشن‌ها
Comment[fi]=Luo, järjestele ja poista osioita
Comment[fr]=Crée, réorganise et supprime des partitions
Comment[fur]=Cree, torne a organizâ e elimine lis partizions
Comment[gd]=Cruthaich no sguab pàirteachaidhean às no cuir rian ùr orra
Comment[gl]=Crear, reorganizar e eliminar particións
Comment[he]=יצירה, ארגון מחדש ומחיקה של מחיצות
Comment[hr]=Stvori, preuredi, i obriši particije
Comment[hu]=Partíciók létrehozása, újraszervezése és törlése
Comment[id]=Membuat, mengorganisasi ulang, serta menghapus partisi
Comment[is]=Búa til, raða og eyða disksneiðum
Comment[it]=Crea, riorganizza ed elimina partizioni
Comment[ja]=パーティションを作成/再構成/削除する
Comment[kk]=Бөлімдерді жасау, басқару және өшіру
Comment[ko]=분할 영역을 만들고, 재배치하고, 삭제합니다
Comment[lt]=Kurkite, pertvarkykite ir trinkite skaidinius
Comment[lv]=Veido, pārkārto un dzēš disku nodalījumus
Comment[ml]=പാര്‍ട്ടിഷനുകള്‍ നിര്‍മ്മിക്കുകയും, അടുക്കിവയ്ക്കുകയും, കളയുകയും ചെയ്യുക
Comment[nb]=Lag, omorganiser og slett partisjoner
Comment[nl]=Partities aanmaken, ordenen en verwijderen
Comment[nn]=Lag, omorganiser og slett partisjonar
Comment[oc]=Crèa, reorganiza e suprimís de particions
Comment[pa]=ਪਾਰਟੀਸ਼ਨ ਬਣਾਓ, ਪਰਬੰਧ ਕਰੋ ਅਤੇ ਹਟਾਓ
Comment[pl]=Tworzenie, reorganizacja i usuwanie partycji
Comment[pt]=Criar, reorganizar e eliminar partições
Comment[pt_BR]=Crie, reorganize e exclua partições
Comment[ro]=Creează, reorganizează și șterge partiții
Comment[ru]=Создание, перераспределение и удаление разделов
Comment[sk]=Vytvára, reorganizuje a odstraňuje diskové oddiely
Comment[sl]=Ustvarjanje, urejanje in brisanje razdelkov
Comment[sr]=Стварајте, реорганизујте и бришите партиције
Comment[sr@latin]=Stvarajte, reorganizujte i brišite particije
Comment[sv]=Skapa, organisera om och ta bort partitioner
Comment[te]=విభజనలను సృష్టించు, పునర్వ్యవస్థీకరించు, మరియు తొలగించు
Comment[th]=สร้าง ปรับโครงสร้าง และลบพาร์ทิชัน
Comment[tr]=Bölümler oluştur, yeniden düzenle ve sil
Comment[uk]=Створення, переміщення або вилучення розділів
Comment[vi]=Tạo, tổ chức lại và xóa bỏ phân vùng
Comment[zh_CN]=创建、重新组织或删除分区
Comment[zh_HK]=建立、編輯或刪除分割區
Comment[zh_TW]=建立、編輯或刪除分割區
Exec=/usr/bin/gparted %f
Icon=gparted
Terminal=false
Type=Application
Categories=GNOME;System;Filesystem;
Keywords=Partition;
Keywords[ar]=قسم;
Keywords[be]=Раздзел;
Keywords[bs]=particija;
Keywords[ca]=Partició:
Keywords[cs]=oddíl;disk;
Keywords[da]=Partition;
Keywords[de]=Partition;
Keywords[el]=Κατάτμηση;Partition;
Keywords[en_GB]=Partition;
Keywords[eo]=Subdisko;
Keywords[es]=Partición;
Keywords[eu]=Partizioa;
Keywords[fi]=Osio;
Keywords[fr]=Partition;
Keywords[fur]=Partizion;
Keywords[gd]=Partition;Pàirteachadh;Pàirtich;
Keywords[hr]=Particija;
Keywords[hu]=Partíció;
Keywords[id]=Partisi;
Keywords[is]=Disksneið;
Keywords[it]=Partizione;
Keywords[kk]=Бөлім;
Keywords[ko]=Partition;파티션;분할;영역;
Keywords[lt]=Skaidinys;
Keywords[lv]=Nodalījums;
Keywords[nb]=Partisjon;
Keywords[nl]=Partition;Partitie;
Keywords[oc]=Particion ;
Keywords[pa]=ਪਾਰਟੀਸ਼ਨ;
Keywords[pl]=Partycja;Partycje;Patrycja;Patrycje;Partycjonowanie;Patrycjonowanie;Dyski;twarde;twardy;HDD;SSD;Systemy;plików;Woluminy;Wolumeny;Napędy;
Keywords[pt]=Partição;
Keywords[pt_BR]=Partição;Partition;
Keywords[ro]=Partiție;
Keywords[ru]=Раздел;
Keywords[sk]=Oddiel;
Keywords[sl]=Razdelek;
Keywords[sr]=партиција;
Keywords[sr@latin]=particija;
Keywords[sv]=Partition;
Keywords[th]=พาร์ทิชัน;
Keywords[tr]=Bölüm;
Keywords[uk]=Розділ;
Keywords[vi]=Partition;Phân vùng;Phan vung;
Keywords[zh_CN]=分区;
Keywords[zh_TW]=分割區;
StartupNotify=true

That seems fine..
And just to be sure here ... you cant just 'right click' on the menu item ?
Also .. check ~/.local/share/applications

..And..hold on a tic... one funky thing here ...
Try changing that line in that desktop file to
pkexec /usr/bin/gparted %f

Interesting -- when you wrote, I was attempting to use exec=pkexec /usr/bin/gparted %f -- but no luck.

/.local/share/applications

does not contain anything from gparted or eddie-ui.

Right-clicking on the menu brings up a Menu Settings application. It gives /etc/xdg/menus/lxqt-applications.menu as the file location -- but when I open the file in an editor, it only shows categories with only a couple lxqt-specific applications. I'll post it here as an edit in a minute.

EDIT

:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>

	<Name>Applications</Name>
	<Directory>lxde-menu-applications.directory</Directory>

	<!-- Read standard .directory and .desktop file locations -->
	<DefaultAppDirs/>
	<DefaultDirectoryDirs/>

	<!-- Read in overrides and child menus from applications-merged/ -->
	<DefaultMergeDirs/>

	<!-- Accessories submenu -->
	<Menu>
		<Name>Accessories</Name>
		<Directory>lxde-utility.directory</Directory>
		<Include>
			<And>
				<Category>Utility</Category>
			 <!-- Accessibility spec must have either the Utility or Settings
			 category, and we display an accessibility submenu already for
			 the ones that do not have Settings, so don't display accessibility
			 applications here -->
				<Not><Category>Accessibility</Category></Not>
				<Not><Category>System</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessories -->

	<!-- Accessibility submenu -->
	<Menu>
		<Name>Universal Access</Name>
		<Directory>lxde-utility-accessibility.directory</Directory>
		<Include>
			<And>
				<Category>Accessibility</Category>
				<Not><Category>Settings</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessibility -->

	<!-- Development Tools -->
	<Menu>
		<Name>Development</Name>
		<Directory>lxde-development.directory</Directory>
		<Include>
			<And>
				<Category>Development</Category>
			</And>
			<Filename>emacs.desktop</Filename>
		</Include>
	</Menu> <!-- End Development Tools -->

	<!-- Education -->
	<Menu>
		<Name>Education</Name>
		<Directory>lxde-education.directory</Directory>
		<Include>
			<And>
				<Category>Education</Category>
			</And>
		</Include>
	</Menu> <!-- End Education -->

	<!-- Games -->
	<Menu>
		<Name>Games</Name>
		<Directory>lxde-game.directory</Directory>
		<Include>
			<And>
				<Category>Game</Category>
			</And>
		</Include>
	</Menu> <!-- End Games -->

	<!-- Graphics -->
	<Menu>
		<Name>Graphics</Name>
		<Directory>lxde-graphics.directory</Directory>
		<Include>
			<And>
				<Category>Graphics</Category>
				<Not><Category>Utility</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Graphics -->

	<!-- Internet -->
	<Menu>
		<Name>Internet</Name>
		<Directory>lxde-network.directory</Directory>
		<Include>
			<And>
				<Category>Network</Category>
			</And>
		</Include>
	</Menu>	 <!-- End Internet -->

	<!-- LXQt-About -->
	<Menu>
		<Name>LXQt-About</Name>
		<Include>
		<Filename>lxqt-about.desktop</Filename>
		</Include>
	</Menu> <!-- End LXQt-About -->

	<!-- Multimedia -->
	<Menu>
		<Name>Multimedia</Name>
		<Directory>lxde-audio-video.directory</Directory>
		<Include>
			<And>
				<Category>AudioVideo</Category>
			</And>
		</Include>
	</Menu>	 <!-- End Multimedia -->

	<!-- Office -->
	<Menu>
		<Name>Office</Name>
		<Directory>lxde-office.directory</Directory>
		<Include>
			<And>
				<Category>Office</Category>
			</And>
		</Include>
	</Menu> <!-- End Office -->

	<!-- System Tools-->
	<Menu>
		<Name>System</Name>
		<Directory>lxde-system-tools.directory</Directory>
		<Include>
			<And>
				<Category>System</Category>
				<Not><Category>Settings</Category></Not>
				<Not><Category>PackageManager</Category></Not>
				<Not><Category>X-Leave</Category></Not>
				<Not><Category>Screensaver</Category></Not>
				<Not><Filename>lxqt-about.desktop</Filename></Not>
			</And>
		</Include>
	</Menu>	 <!-- End System Tools -->

	<!-- Other -->
	<Menu>
		<Name>Other</Name>
		<Directory>lxde-other.directory</Directory>
		<OnlyUnallocated/>
		<Include>
			<And>
				<Not><Category>Core</Category></Not>
				<Not><Category>Settings</Category></Not>
				<Not><Category>Screensaver</Category></Not>
			</And>
		</Include>
		</Menu> <!-- End Other -->

	<!-- Settings -->
	<Menu>
		<Name>DesktopSettings</Name>
		<Directory>lxde-settings.directory</Directory>
		<Menu>
			<Name>LXQtSettings</Name>
			<Directory>lxqt-settings.directory</Directory>
			<Include>
				<And>
					<Category>LXQt</Category>
					<Or>
						<Category>Settings</Category>
						<Category>PackageManager</Category>
					</Or>
				</And>
				<!-- Include some optional components here -->
				<Filename>obconf-qt.desktop</Filename>
				<Filename>compton-conf.desktop</Filename>
				<Filename>pcmanfm-qt-desktop-pref.desktop</Filename>
			</Include>
			<Layout>
				<Filename>lxqt-config.desktop</Filename>
				<Separator/>
				<Merge type="menus"/>
				<Merge type="files"/>
			</Layout>
		</Menu>
		<OnlyUnallocated/>
		<Include>
			<Or>
				<Category>Settings</Category>
				<Category>PackageManager</Category>
			</Or>
		</Include>
		<Exclude>
			<Or>
				<Filename>lxqt-config.desktop</Filename>
			</Or>
		</Exclude>
		<Layout>
			<Merge type="menus"/>
			<Merge type="files"/>
		</Layout>
	</Menu> <!-- End Settings -->

	<!-- Leave -->
	<Menu>
		<Name>X-Leave</Name>
		<Directory>lxqt-leave.directory</Directory>
		<Include>
			<And>
				<Category>X-Leave</Category>
			</And>
		</Include>
	</Menu>	 <!-- End Leave -->

	<!-- Screensaver -->
	<Menu>
		<Name>Screensaver</Name>
		<Include>
		<Filename>lxqt-lockscreen.desktop</Filename>
		</Include>
	</Menu> <!-- End Screensaver -->

	<Layout>
		<Merge type="files"/>
		<Merge type="menus"/>
		<Separator/>
		<Menuname>DesktopSettings</Menuname>
		<Menuname show_empty="false" inline="true">LXQt-About</Menuname>
		<Separator/>
		<Menuname show_empty="false">X-Leave</Menuname>
		<Menuname show_empty="false" inline="true">Screensaver</Menuname>
	</Layout>

</Menu> <!-- End Applications -->

Running


pkexec gparted

from the terminal opens an authentication gui, and I'm able to access the program as root.

Same thing with eddie-ui.

But for some reason, adding pkexec to the exec line in the .desktop entries does not work.

There is something going on with how they are launched ..
can you launch the desktop files directly ?
actually and /usr/bin/gparted directly for that matter?

This works perfectly: