riemarukarurosu / zerotier-gtk Goto Github PK
View Code? Open in Web Editor NEWA Linux front-end for ZeroTier build in GTK + Libadwaita
License: GNU General Public License v3.0
A Linux front-end for ZeroTier build in GTK + Libadwaita
License: GNU General Public License v3.0
COMMANDS [2] AND COMMANDS[3]
Doesn't work, it seems Flatpak permissions is not allowing _ztActivate to change the systemctl,
COMMANDS[0], COMMANDS[1] Works
Notes:
self.COMMANDS [0] it's the same as "sudo systemctl start"
self.COMMANDS [1] it's the same as "sudo systemctl stop"
self.COMMANDS [2] it's the same as "sudo systemctl enable"
self.COMMANDS [3] it's the same as "sudo systemctl disable"
def _ztActivate(self): bus = SystemBus() systemd = bus.get(".systemd1") if self.serviceStatus == self.COMMANDS[0]: response = systemd.StartUnit(self.SERVICE,"replace") print(response) elif self.serviceStatus == self.COMMANDS[1]: systemd.StopUnit(self.SERVICE,"replace") elif self.serviceStatus == self.COMMANDS[2]: systemd.EnableUnitFiles([self.SERVICE],False,True) elif self.serviceStatus == self.COMMANDS[3]: systemd.DisableUnitFiles([self.SERVICE],False) else: print("ERROR") self.serviceStatus = None
Need to follow new guidelines, this could be dangerous because they're some existing implementations
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.