-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Is your feature request related to a problem? Please describe.
The command called by libkiclient for shutdown/restart/logout are hard-coded inside libkiclient.
I have the necessity to customize the command called depending on client operating system and expecially on windows manager used (for example, Windows, XFCE, Mate...).
The command hardcoded for logout, for example, is slighty different for XFCE used in LinuxMint rather than Ubuntu or Debian and create (I'm using LinuxMint XFCE as client) some problems in a "Guest user" context.
Describe the solution you'd like
I downloaded the source code and I already modified it to read three specific parameters from Libki.ini.
This is how looks my Libki.ini
[managesession]
logoutcommand="" ; Command executed to logout the current user, usefull to manage logout on different OS
; for example:
; "shutdown -l -f" in Windows
; "xfce4-session-logout --logout" for XFCE 4
; "gnome-session-save --kill --silent" for Gnome
; "gnome-session-quit --no-prompt" for Unity
; "mate-session-save --force-logout" for Mate
; "qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -0 -1 -1" for KDE 4
;
rebootcommand="" ; Command executed to reboot the system, usefull to manage reboot on different OS
; for example:
; "shutdown -r -f -t 0" in Windows
; "sudo reboot" if your user are in sudoers
; "xfce4-session-logout --reboot" for XFCE 4
;
shutdowncommand="" ; Command executed to shutdown the system, usefull to manage shutdown on different OS
; for example:
; "shutdown -s -f -t 0" in Windows
; "sudo reboot" if your user are in sudoers
; "xfce4-session-logout --halt" for XFCE 4
Additional context
If you are interested in this patch, I can post it directly here. Unfortunately, I'm not very skilled with GitHub and I need some suggestions on how to properly propose my patch.
Thank you in advance.