Cannot launch htop from desktop or others shortcuts Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
cmoulliard
Posts: 39
Joined: Tue Jan 19, 2021 11:51 am

Re: Cannot launch htop from desktop or others shortcuts

Post by cmoulliard »

What is your config for the following parameters defined within the dietpi.txt file ?
Here are mine

Code: Select all

# VNC Server
SOFTWARE_VNCSERVER_WIDTH=1280
SOFTWARE_VNCSERVER_HEIGHT=720
SOFTWARE_VNCSERVER_DEPTH=16
SOFTWARE_VNCSERVER_DISPLAY_INDEX=1
SOFTWARE_VNCSERVER_SHARE_DESKTOP=0
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot launch htop from desktop or others shortcuts

Post by Joulinar »

it's default settings. I did not modified anything on these values.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
cmoulliard
Posts: 39
Joined: Tue Jan 19, 2021 11:51 am

Re: Cannot launch htop from desktop or others shortcuts

Post by cmoulliard »

Using mate looks better as you can see hereafter

Screenshot 2021-01-21 at 18.42.16.png

BUG: I have discovered an issue. When we switch to another desktop (xfce to mate by example), then the file "/root/.vnc/xstartup" is not updated and by consequence the command executed is still the previous "exec xfce4-session" and not "exec mate-session"
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot launch htop from desktop or others shortcuts

Post by Joulinar »

well it's not really a bug. The file /root/.vnc/xstartup is touched during VNC server installations only and not during desktop installation. Therefore it stay unchanged if you change desktop only.

https://github.com/MichaIng/DietPi/blob ... 9770-L9807

Probably some enhancement to check during desktop installation for the availability of /root/.vnc/xstartup and inject the actual desktop

@MichaIng
your thoughts as maintainer :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Cannot launch htop from desktop or others shortcuts

Post by MichaIng »

Makes sense. We could also use startx to use the system default :?.
User avatar
Joulinar
Posts: 4203
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot launch htop from desktop or others shortcuts

Post by Joulinar »

hmm startx doesn't seems to be working.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2780
Joined: Sat Nov 18, 2017 6:21 pm

Re: Cannot launch htop from desktop or others shortcuts

Post by MichaIng »

Ah lol of course it cannot work since it wants to start an X server where this is already started as part of the VNC server. Okay, at least we might be able to start the same X client that startx starts.
Post Reply