Skip to content

Commit

Permalink
Merge pull request #29 from nwg-piotr/alsa
Browse files Browse the repository at this point in the history
fixed path to "defaults" file
  • Loading branch information
nwg-piotr authored Mar 2, 2021
2 parents db76644 + 7888123 commit 2954c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nwg_panel/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ def get_volume():
# https://github.com/nwg-piotr/nwg-panel/issues/24
try:
element = alsamixer.Element(mixer, nwg_panel.common.defaults["master"])
except OSError:
user_file = os.path.join(get_config_dir(), "scontrol")
except:
user_file = os.path.join(local_dir(), "defaults")
if os.path.isfile(user_file):
nwg_panel.common.defaults["master"] = load_string(user_file)
else:
Expand Down

0 comments on commit 2954c59

Please sign in to comment.