Skip to content

Commit

Permalink
Merge pull request #135 from cromelex/update-microphone_used
Browse files Browse the repository at this point in the history
updating microphone_used.py to ignore a dummy/blank app_name
  • Loading branch information
bkbilly authored Nov 11, 2024
2 parents 2763429 + f4318d0 commit 59e3c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnxlink/modules/microphone_used.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_info(self):
data = json.loads(stdout)
for output in data:
app_name = output.get("properties", {}).get("application.name")
if app_name is not None:
if app_name and app_name != "":
return {"is_used": "ON", "application": app_name}
return {"is_used": "OFF", "application": None}
mics = glob.glob("/proc/asound/**/*c/sub*/status", recursive=True)
Expand Down

0 comments on commit 59e3c22

Please sign in to comment.