J-Lentz / iwgtk

Lightweight wireless networking GUI (front-end for iwd)
GNU General Public License v3.0
204 stars 14 forks source link

add button to restart iwd service #22

Open prabirshrestha opened 2 years ago

prabirshrestha commented 2 years ago

Noticed that sometimes when my laptop goes to sleep and wakes up it can't connect from iwgtk or even from the termainal. On/Off the devices doesn't work. Need to restart the iwd service. Would it be possible to add a button to restart iwd service?

J-Lentz commented 2 years ago

This feature would be messy to implement for two reasons:

  1. It requires root privileges.
  2. Different mechanisms are needed for different init systems.

So in practice, this feature would probably be systemd-specific, and would only work when iwgtk is run with root privileges. But because iwgtk is generally meant to be run without root privileges, my stance is that restarting the daemon is outside of our scope.

J-Lentz commented 2 years ago

This workaround might possibly resolve your issue with iwd: https://wiki.archlinux.org/title/Iwd#Restarting_iwd.service_after_boot