SUMMARY Hello. I'm looking for a way to start a script (potentially as root) when a connection is established and/or disconnected. Eg: to trigger backup, change the FW/GW/routing configuration etc. STEPS TO REPRODUCE 1. Open the plasma-nm applet 2. Select any connection entry 3. Look for "Start script at connection" or "Start script at disconnection" OBSERVED RESULT No script can be triggered at neither connection nor disconnection. EXPECTED RESULT Entry for specifying a script in each case. SOFTWARE/OS VERSIONS Operating System: Debian GNU/Linux 12 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.10 Kernel Version: 6.7.12-amd64 (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION N/A
Any progress on the idea presented here ?
This is out of scope. If anyone wanted to do such a thing they can write some small script in any language to also talk to NetworkManager without needing any infrastructure on the KDE side.
(In reply to David Edmundson from comment #2) > This is out of scope. If anyone wanted to do such a thing they can write > some small script in any language to also talk to NetworkManager without > needing any infrastructure on the KDE side. Thanks for your reply :) I would have imagined an entry in the KDE network configuration window that lets a user specify a script to be started at connection and/or disconnection so that no lowlevel integration would be needed. One can also use /etc/network/if-[pre|post]-[up|down].d/ but I think that solution depends too much on the distro used.
Bulk transfer as requested in T17796