|
1 | 1 | # Graceful shutdown
|
2 | | -Do graceful shutdown of given programs and wait for them to exit, in doing so, on Linux. |
| 2 | +Do graceful shutdown of given programs and wait for them to exit, in doing so, on Linux distribution. |
3 | 3 |
|
4 | | -Usecase: You don't have to close all programs before logging out or shutdown of your system. Let this script handle it. |
5 | | -on KDE 5, put `graceful-shutdown.sh` in `~/.config/plasma-workspace/shutdown/`. Change `programs_list` variable in `graceful-shutdown.sh` to your usecase. |
| 4 | +## Usecase: |
| 5 | +You don't have to close all programs before logging out or shutdown of your Linux distribution. Let this script handle it. |
| 6 | +You have to look for way to execute this script before your system logs out or shutdowns. |
| 7 | +If you use KDE 5 based distributions like KDE Neon (formerly KUbuntu), Manjaro KDE, etc. you use both scripts namely, `graceful-shutdown.sh` and `kde-graceful-shutdown.sh`. |
| 8 | +On other systems use only `graceful-shutdown.sh` script. In either case, change `programs_list` variable in `graceful-shutdown.sh` to your usecase. |
| 9 | +Make sure both scritps are in `PATH` variable of your **desktop environment shell** or you provide absolute path to them. |
| 10 | + |
| 11 | +### KDE |
| 12 | +On KDE 5, put `kde-graceful-shutdown.sh` and `graceful-shutdown.sh` in `~/.config/plasma-workspace/shutdown/`. |
0 commit comments