A graphical shutdown utility for Linux and Windows
© Konrad Twardowski
Visit KShutdown Home Page and Wiki for more info.
| KDE Build | KF5 Build | Qt Build | Qt Build (Windows) | |
| Summary | A KShutdown version compiled using KDE 4 libraries | A KShutdown version compiled using KDE Frameworks 5 libraries | A KShutdown version compiled without KDE 4 libraries (Qt only, for Xfce, GNOME, Windows, etc.) | |
| Additional Features | Better visual and functional integration with KDE, better User Interface elements and standard dialog windows, global and local keyboard shortcuts configuration, customizable notifications (e.g. sounds), improved localization, a more reliable system tray/notification icon (KF5 only). | None (just plain Qt) | ||
| Compilation Script | ./Setup-kde4.sh | ./Setup-kf5.sh | ./Setup-qt4.sh or ./Setup-qt5.sh | Setup-qt4.bat or ./Setup-wine.sh |
| Required Libraries | libqtgui4, libqt4-dbus, +minimal set of KDE libraries (NOTE: since version 3.1 Beta libkworkspace4 and kdebase-workspace-dev are NO longer required) | Qt5Widgets, Qt5DBus, base KF5 libraries (see "src/CMakeLists.txt" for details) |
Qt 4: QtGui, QtDBus, QtCore (Ubuntu packages: libqtgui4, libqt4-dbus) Qt 5: Qt5Widgets, Qt5DBus, Qt5Gui, Qt5Core |
See: Qt Build @ Windows |
| Menu Shortcut Name | KShutdown | KShutdown | KShutdown/Qt | KShutdown |
| Configuration Files |
|
Tip: You can manually import existing configuration from ~/.kde directory. |
Note: Does not apply to the portable version. |
Note: Does not apply to the portable version. |
| Installed Files |
|
|
|
|
| Default Program Location | /usr/bin/kshutdown | /usr/bin/kshutdown | /usr/bin/kshutdown-qt | kshutdown.exe |
| Developer Info | ||||
| C++ #define | KS_NATIVE_KDE |
KS_NATIVE_KDE and KS_KF5 |
KS_PURE_QT |
|
| Build System | CMake (CMakeLists.txt files) | QMake (src/src.pro file) or CMake (experimental) | ||
| Language Translation System (input: po/*.po) | Gettext (output: build.tmp/po/*.mo) | Gettext (output: src/i18n/*.qm), kshutdown.qrc | TODO: | |
See Supported Functions/Platforms table for more info.
"kdelibs-dev" package, CMake 2.4, and Gettext Utilities./Setup-kde4.sh./Setup-kde4.sh "/your/prefix/dir"export CXX=/usr/bin/clang++export CXXFLAGS=-march=i686 (in case of Illegal Instruction errors on some hardware)
BUILDTYPE can be Release or Debug.
You can change the installation directory (prefix) by setting the CMAKE_INSTALL_PREFIX environment variable.
To display default prefix for KDE applications, run kde4-config --prefix.
mkdir build && cd buildcmake -DCMAKE_BUILD_TYPE=BUILDTYPE -DCMAKE_INSTALL_PREFIX="/usr/local" ..makemake installNote: Some functions may be unavailable in this build. See Qt Build table for more info.
./Setup-qt4.shcd src; qmake -spec /usr/share/qt4/mkspecs/unsupported/linux-clang/makemkdir build-qt5.tmp (use separated "build-qt5.tmp" directory to avoid mess in source tree)cd build-qt5.tmpcmake -DKS_PURE_QT=true -DCMAKE_INSTALL_PREFIX=/usr ..make && ./src/kshutdowncd src/usr/lib/$YOUR_VERSION-linux-gnu/qt5/bin/qmakemakeNote: You can download a binary (already compiled) KShutdown version for Windows.
qt-opensource-windows-x86-mingw*.exe, minGW, LGPL version)C:\mingw32Setup-qt4.bat (this will rebuild both portable and installable version)cmd.exe)cd your-kshutdown-source-dir\srcc:\qt\<your-qt-version>\bin\qtvars.bat (it should print Setting up a MinGW/Qt only environment...)make && release\kshutdown-qt.exekshutdown.nsi and select Compile NSIS Script to build and test installer./Setup-wine.sh or wineconsole tools/test-wine.batcd srcsetgcc gcc4qmakemakeCMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in ...;/usr/lib/kde4/share/kde4/apps
Install "kdelibs-dev" (sometimes called kdelibs5-dev) packages for your KDE version.
This may happen after Ubuntu upgrade even if required Phonon files are already installed. [Solution]
This may happen after KDE upgrade. Run ./Setup-kde4.sh to refresh Makefiles.
This may happen if both Qt 4 and 5 qmake is installed.
Try to uninstall qt5-qmake package.
Try to run
./Setup-kde4.sh and
cd build.tmp; sudo make install instead of
sudo sh Setup-kde4.sh
| Desktop Environment/Platform | Turn Off Computer1 2 | Restart Computer1 2 | Suspend2 | Hibernate2 | Lock Screen | Logout | Extras | Waiting for a selected application | Inactivity Monitor |
| Legend | |||||||||
| Test | Should work, still testing ;) | ||||||||
| OK | Done (hover an item to display implementation details) | ||||||||
| N/A | Function is not available on this platform/KShutdown version | ||||||||
| TODO/FIXME | Work In Progress - to be implemented in a future... | ||||||||
| CLI | Function available via Command Line (example: kshutdown --lock) | ||||||||
| 1 D-Bus commands should work with GDM, KDM, LightDM, and other Display Managers | |||||||||
| 2 systemd (org.freedesktop.login1 D-Bus interface) is supported since KShutdown 3.2 | |||||||||
| KDE 4 (KDE Build) | OK | OK | OK | OK | OK | OK | OK | OK, no CLI | OK |
| Plasma 5 (KF5 Build) | OK | OK | OK | Test | OK | OK | Test | Test, no CLI | OK |
| Windows XP/Vista/7/8/10 | OK | OK | OK | OK | OK | OK | OK | OK, no CLI | OK |
| Xfce 4.8+ | OK | OK | OK | OK | OK | FIXME | Test | OK, no CLI | TODO |
| LXQt | TODO | ||||||||
| KDE 4 (Qt Build) | OK | OK | OK | OK | OK | OK | Test | OK, no CLI | FIXME |
| Plasma 5 (Qt Build) | Test | Test | Test | Test | Test | Test | Test | Test, no CLI | FIXME |
| MATE | OK | OK | OK | Test | OK | OK | OK | OK, no CLI | TODO |
| Trinity | Test | Test | Test | Test | OK | OK | Test | Test | TODO |
| GNOME Shell (3.x) | OK | OK | OK | Test | OK | OK | Test | OK, no CLI | OK |
| Unity | Test | Test | Test | Test | Test | Test | Test | OK, no CLI | TODO |
| Enlightenment | Test | Test | OK | OK | OK | OK | Test | OK, no CLI | TODO |
| LXQt | Test | Test | Test | Test | OK | OK | Test | OK, no CLI | TODO |
| OK | OK | OK | OK | OK | OK | Test | OK, no CLI | TODO | |
| OK | OK | OK | OK | OK | OK | OK | OK, no CLI | TODO | |
| Haiku | OK | OK | N/A | N/A | N/A | N/A | Test | TODO | TODO |
| Cinnamon | OK | OK | OK | OK | OK | OK | Test | OK, no CLI | TODO |
| GNOME 2 | Test (?) | TODO | |||||||
| Openbox | TODO (?) | OK | TODO (?) | ||||||
| Mac OS X | TODO (?) | ||||||||
| KDE 3 | TODO (?); KShutDown 1.0.x exists but it's outdated and not supported... | ||||||||
If your Linux distribution supports systemd then try to install KShutdown 3.2+; otherwise install "upower" package.
As a workaround you can try to create a custom action
with a systemctl command.
If your Linux distribution supports systemd then try to install KShutdown 3.2+; otherwise install "consolekit" package.
If no main window (and no system tray icon) is visible, kill "kshutdown" process and try to run it again.
This may be caused by a buggy system tray implementation. You can disable it in KShutdown settings.
Some configuration and command line options in KShutdown 2.x+ may be not fully compatible with the old KShutdown 1.0.x.