Skip to content

Commit

Permalink
Merge pull request #87 from Hashfastr/main
Browse files Browse the repository at this point in the history
Added gnome-control-center support for 'Launch Connection Manager'
  • Loading branch information
firecat53 authored Aug 16, 2020
2 parents e22dae2 + 3a02bd1 commit 4eeabef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions networkmanager_dmenu
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,12 @@ def launch_connection_editor():
gui_if_available = CONF.getboolean("editor", "gui_if_available", fallback=True)
if gui_if_available is True:
try:
Popen(["nm-connection-editor"]).communicate()
Popen(["gnome-control-center", "network"]).communicate()
except OSError:
Popen([terminal, "-e", "nmtui"]).communicate()
try:
Popen(["nm-connection-editor"]).communicate()
except OSError:
Popen([terminal, "-e", "nmtui"]).communicate()
else:
Popen([terminal, "-e", "nmtui"]).communicate()

Expand Down

0 comments on commit 4eeabef

Please sign in to comment.