Small changes necessary to make fw-prompt a DBus autostart service.

shw_dev
Stephen Watt 7 years ago
parent 0666e9c3c7
commit 792726545e

@ -1107,6 +1107,10 @@ func buttonAction(action string) {
}
func main() {
if len(os.Args) == 3 && os.Args[1] == "-display" {
os.Setenv("DISPLAY", os.Args[2])
}
_, err := newDbusServer()
if err != nil {
log.Fatal("Error:", err)

@ -0,0 +1,4 @@
[D-BUS Service]
Name=com.subgraph.FirewallPrompt
Exec=/usr/bin/fw-prompt -display :0
User=user
Loading…
Cancel
Save