McDope
McDope
todo: [ ] Modifiy opts->device_list to have sudo attribute [ ] Modifiy pusb_device_connected to only iterate devices having the attribute
TeamViewer does not provide a way to check for active connections, except in the GUI which is obv not an option. So for TV we are left with either parsing...
xrdp can be detected via envvars 
For gnome-remote-desktop it seems there is also no way to check for incoming connection For VNC: to many different servers Maybe really the best to build a list of processnames,...
> For gnome-remote-desktop it seems there is also no way to check for incoming connection > > For VNC: to many different servers > > Maybe really the best to...
Active Teamviewer connection result in a process that does not exist without connection established ``` ss -ntp | grep TeamViewer ESTAB 0 0 127.0.0.1:47192 127.0.0.1:5939 users:(("TeamViewer",pid=93958,fd=44)) ESTAB 0 0 127.0.0.1:50652...
gnome-remote-desktop in VNC mode can also be detected that way, doesnt work in RDP though  `ESTAB 0 21128 [::ffff:192.168.1.101]:5900 [::ffff:192.168.1.103]:46328 users:(("gnome-remote-de",pid=38390,fd=58)) `
Hmpf I dont get x11vnc working to test it...
Maybe fixed by #229, will test in the coming days...
Seems to actually be fixed by that, lol. So SELinux just didn't liked my crappy C. `pamusb-check` reports "fine", sudo works, login doesn't work though. still investigating. At least it...