Skip to content

Commit aec4fcd

Browse files
committed
Hotfix: getJoinedDomains and getInstalledPrinters not working
1 parent 5f6cfc6 commit aec4fcd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
linuxmuster-linuxclient7 (1.1.2) lmn73; urgency=high
2+
3+
* Hotfix: getJoinedDomains and getInstalledPrinters not working
4+
5+
-- Dorian Zedler <dorian@itsblue.de> Sun, 16 Nov 2025 19:09:06 +0200
6+
17
linuxmuster-linuxclient7 (1.1.1) lmn73; urgency=medium
28

39
* Fix onLogin hook on Debian 13 (#90)

usr/lib/python3/dist-packages/linuxmusterLinuxclient7/printers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _getInstalledPrintersOfUser(username):
9191
command = ["lpstat", "-U", username, "-p"]
9292
#logging.debug(f"running '{command}'")
9393

94-
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, shell=True)
94+
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
9595

9696
if not result.returncode == 0:
9797
logging.info("No Printers installed.")

usr/lib/python3/dist-packages/linuxmusterLinuxclient7/realm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def getJoinedDomains():
115115
:return: Tuple (success, list of joined domians)
116116
:rtype: tuple
117117
"""
118-
result = subprocess.run(["realm", "list", "--name-only"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, shell=True)
118+
result = subprocess.run(["realm", "list", "--name-only"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
119119

120120
if result.returncode != 0:
121121
logging.error("Failed to read domain joins!")
@@ -155,7 +155,7 @@ def getDomainConfig(domain):
155155
:return: Tuple (success, dict with domain config)
156156
:rtype: tuple
157157
"""
158-
result = subprocess.run(["adcli", "info", domain], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, shell=True)
158+
result = subprocess.run(["adcli", "info", domain], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
159159

160160
if result.returncode != 0:
161161
logging.error(f"Failed to get details of domain {domain}!")

0 commit comments

Comments
 (0)