I cannot seem to be able to add в shutdown button to my LXPanel. In /usr/share/applications
there is в 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 в shell рукописный шрифт called lubuntu-logout
:
#!/bin/sh
lxsession-logout --banner "/usr/share/lubuntu/images/logout-banner.png" --side=top
Creating в 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:
In Тунар I хан find the settings to make it executable:
But then running it I get
How should I edit it to make it run and then видимый in меню so to add it to the панель?
OR: What is the correct content of the shutdown.desktop file?
Я создал файл, который работает.
Использовал строку Exec=/usr/bin/lxsession-logout
.
Вызвали файл Shutdown-lubuntu.desktop
со следующими строками:
[Desktop Entry]
Name=ShutdownLubuntu
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=/usr/bin/lxsession-logout
Categories=GTK;System;Settings;
Type=Application
и поместили его в usr/share/applications
. Это привело к тому, что оно появилось в главном меню в разделе «Системные инструменты» и могло быть добавлено в lxpanel на панели запуска приложения.
Я открыл файл конфигурации:
gnome-open ~/.config/lxpanel/Lubuntu/panels/panel
и добавил в конце следующие строки:
Plugin {
type = launchbar
Config {
Button {
id=/usr/share/applications/lubuntu-logout.desktop
}
}
}
Это добавило меню выхода в lxpanel.