Skip to content

Commit

Permalink
updating microphone_used.py to ignore a dummy/blank app_name
Browse files Browse the repository at this point in the history
  • Loading branch information
cromelex committed Nov 11, 2024
1 parent 2763429 commit f4318d0
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 f4318d0

Please sign in to comment.