Desktop menu listing for dietpi utilitys will not work unless logged in as root

Creating a bug report/issue

Required Information

  • DietPi version | 8.19 rc 1
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | arm64
  • SBC model | RPI-3B+
  • Power supply used | Canakit power supply
  • SD card used | USB SSD

Additional Information (if applicable)

  • Software title | LXDE, Mate, Xfce Desktops
  • Was the software title installed freshly or updated/migrated? installed on a fresh install of dietpi using dietpi-software for each desktop.
  • Can this issue be replicated on a fresh installation of DietPi? See above
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Log in as root user and select any of the dietpi utilities from the system menu and the utility come up and works properly.

  2. Login as a normal user (dietpi user for these tests) and when you select one of the dietpi utilitys from the system menu it appears to try opening a window (terminal?) and then immediately closes.

I only checked these 3 dektops as the problem will probably be the same in all of the desktops listed in dietpi-software.

I had not noticed this before in my various test installs of various desktop as I normally open a terminal window when I need to use any of the dietpi utilitys.

Our DietPi tools require root privileges. Therefore, they would need to be open with sudo or G_SUDO

dietpi@DietPi4:~$ dietpi-software
[FAILED] DietPi-Software | Root privileges required. Please run the command with "sudo" or "G_SUDO".

That is probably why the window was closed immediately.

I agree that this is the cause. My point is that these “optimized packages for dietpi use” menu items are NOT configured properly. If they are in the system menu the menu items should be configured to ask for the sudo password for proper access as a normal user. Having them in the menu and only working properly if you are logged is a root is a major security hole. As I stated in my origional post I normally use terminal window to access these programs because I know the require sudo/root access rights to run.
I mainly started this thread to see if the maintainers of these “optimized” desktop packages could do a proper configuration of the menu items or just remove the items from the menu and let users use a terminal window and sudo to access them.

ping @MichaIng