How to run a function using SU or the whole entire app in Superuser - kivy

34 Views Asked by At

I'm making a kivy app in where i'm scanning the ipv4, using arp, now for this superuser is required.

But i'm struggling to either run the function via super user or the whole entire app, whatever works.

Thanks for the help.

What i tried: cmd = ['su', '-c', 'python', '-c', name_function] output = subprocess.check_output(cmd) print(output)

or calling su using subprocess on startup - does absolutely nothing.

0

There are 0 best solutions below