Install logout-manager (dpkg)
Logout manager is now ready for release! This project is intended for lightweight window managers (WMs) or desktop environments (DEs) that do not include a nice logout screen.
This program has an important dependency:
- sudo: Because I’m not interested in using dbus and I barely know what I’m doing, I just have my package install a sudoers rule set, which could easily be adapted for a distro or release by just allowing only users approved for local console access to be able to run the commands in question.
# File: /etc/sudoers.d/30_logout-manager_sudo Defaults env_keep += "DRYRUN VERBOSE" ALL ALL = (root) NOPASSWD: /usr/libexec/logout-manager/lm-helper *
Dynamic hibernate-ability detection. The button will be disabled for the front ends that have that ability.
Multiple front-ends. You can use a symlink, or the Debian alternatives system to choose which frontend sits at /usr/bin/logout-manager.
This is the main front end.
All front-ends do use the gtk3 icon resolution methodology. In the config file, you can either use the common icon names, like “system-log-out,” or you can pass full path names to icons.
Because some people like all-text. But then, you probably have other methods to invoke these commands already. This option was added for the sake of completeness, and as a learning experience for myself.
This feature exists for the hard-core types who don’t even like GTK. Also, I think I am the first person on the Internet to want to load svg graphics in python3 tkinter.
The icon resolution is not as robust in tcl, and the project does not currently bundle any icons of its own.
Also included is a system tray icon! If your panel does not include a quick menu for logout-style actions, you can run “logout-manager-trayicon” in your WM startup list. Right-click to get the menu, or double-click to run “logout-manager.” This tool is not related to any of the other executable files and is not necessary for the others to function.
- Be a learning experience and template for future work. I’ve never worked in tcl/tk (the python3 tkinter library) or ncurses before. One branch now even uses the XApp.StatusIcon instead of the Gtk.StatusIcon (as described in August 2019 Linux Mint blog post)
- Provide a distro-independent, window-manager independent menu for logout options. I intend to provide desktop support to non-technical users and they will expect such a set of buttons.
- Avoid dependencies on projects such as dbus, pulseaudio (not relevant here), consolekit, systemd, etc.