emlid / bluetool

Bluetooth manager for Linux.
GNU General Public License v3.0
48 stars 26 forks source link

bluetoool: blueserver: reset alias on hostname change #14

Closed nikita-yefremov closed 3 years ago

nikita-yefremov commented 3 years ago

As changing the bluetooth adapter name without restarting it is impossible (as far as my research got), we probably should add a signal receiver, which handles the hostname changes and resets the "Alias Name", which is a bluetooth-friendly changeable field, which acts as a "Name" one.

We should also reset Alias Name on server initialization, as it could be changed while the service was down and we wouldn't know.