mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-22 04:25:04 +02:00
open_log_dir()
This commit is contained in:

committed by
GitHub

parent
b9c90c1809
commit
db22fbb61c
@@ -2181,3 +2181,13 @@ def log_package_status(self):
|
|||||||
f.write("%s\n" % package)
|
f.write("%s\n" % package)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
def open_log_dir():
|
||||||
|
try:
|
||||||
|
subprocess.Popen(
|
||||||
|
["sudo", "-u", sudo_username, "xdg-open", log_dir],
|
||||||
|
shell=False,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
)
|
||||||
|
except Exception as e:
|
||||||
|
logger.error("Exception in open_log_dir(): %s" % e)
|
Reference in New Issue
Block a user