Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 16517  / 1 Year ago, fri, november 11, 2022, 7:36:13

I cannot seem to be able to add a shutdown button to my LXPanel. In /usr/share/applications there is a Shutdown (lubuntu-logout.desktop) containing the line Exec=lubuntu-logout but it would not run.



It contains the following



[Desktop Entry]
Name=Shutdown
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=lubuntu-logout
Path=
Terminal=false
StartupNotify=false
Categories=Utility;Settings;System;GTK
NoDisplay=false


In usr/bin there is a shell script called lubuntu-logout:



#!/bin/sh
lxsession-logout --banner "/usr/share/lubuntu/images/logout-banner.png" --side=top


Creating a desktop file that will contain the line Exec=lxsession-logout should also work. But it does not!



Trying to make it executable, trying to find permissions in pcmanfm - properties:



enter image description here



In Thunar I can find the settings to make it executable:



enter image description here



But then running it I get



enter image description here



How should I edit it to make it run and then visible in menus so to add it to the panel?



OR: What is the correct content of the shutdown.desktop file?


More From » shutdown

 Answers
7

I created a file that works.



Used the line Exec=/usr/bin/lxsession-logout.



Called the file Shutdown-lubuntu.desktop with these lines:



[Desktop Entry]
Name=ShutdownLubuntu
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=/usr/bin/lxsession-logout
Categories=GTK;System;Settings;
Type=Application


and put it in usr/share/applications.
This made it appear in main menu under System Tools and could be added in lxpanel in an application launch bar.


[#35134] Saturday, November 12, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herfor

Total Points: 490
Total Questions: 101
Total Answers: 110

Location: Guadeloupe
Member since Mon, Jan 24, 2022
2 Years ago
;