Hi there,
after some years of abstinence, I've just again come back to Linux Mint 20.1 Cinnamon, just to find that I seem to be unable to create a .desktop shortcut by which to run krusader in root mode. It can be run from terminal with sudo, but that's not really what I'm looking for.
I think there has been some very controversial discussion about gksu(do), kdesu(do), pkexec and the likes, the pros and cons of having them in the repos, and I don't want to (re)start that. There's been a post under the same title in this forum's branch from 2015, that was suggesting such approaches, but none of them seem to work nowadays.
In distros running the KDE Plasma desktop, I would simply create a .desktop file that runs under another (root) user.
Could you tell me how to achieve this with Cinnamon?
Tx,
THN
[SOLVED] Enabling desktop shortcuts in root account, again
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Enabling desktop shortcuts in root account, again
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Enabling desktop shortcuts in root account, again
That might be a bad idea, but give it a go:
viewtopic.php?t=191711
https://beamtic.com/launch-gui-from-desktop-files
viewtopic.php?t=191711
https://beamtic.com/launch-gui-from-desktop-files
Re: Enabling desktop shortcuts in root account, again
@mikeflan
Hi,
thanks for the tip; it works well with the following simplified .desktop file:
The password must be entered on the console, instead of the more beautiful window I used to get with kdesu(do) / gksu(do), but at least it works.
Tx again,
THN
Hi,
thanks for the tip; it works well with the following simplified .desktop file:
Code: Select all
[Desktop Entry]
Type=Application
Terminal=false
Exec=gnome-terminal -e "bash -c 'sudo -i krusader;'"
Name=Krusader
Icon=krusader_root
Tx again,
THN
Re: [SOLVED] Enabling desktop shortcuts in root account, again
So I have found a much more convenient and visually appealing solution:
1) create an executable shell script somewhere in your home folder containing the line
2) create a starter entry in cinnamon's menu system and link it to that script; you might want to assign the krusader_root icon to the starter
3) locate the newly created starter and place it on the desktop or in your taskbar
4) upon launch it will query you for the root pw (in a nice dialog box ) and then run krusader in root mode.
Feel free to comment.
CU
THN
1) create an executable shell script somewhere in your home folder containing the line
Code: Select all
pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" /usr/bin/krusader
3) locate the newly created starter and place it on the desktop or in your taskbar
4) upon launch it will query you for the root pw (in a nice dialog box ) and then run krusader in root mode.
Feel free to comment.
CU
THN
Re: [SOLVED] Enabling desktop shortcuts in root account, again
Excellent. Thanks for sharing what you found.
Please mark this issue solved. Go to your original 1st post (top of topic), click the edit pencil, add [Solved] at the beginning of the title and click Submit.
Please mark this issue solved. Go to your original 1st post (top of topic), click the edit pencil, add [Solved] at the beginning of the title and click Submit.