mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
chore: release v0.3.7
This commit is contained in:
1 parent
4e49762a85
commit
44cf452f67
5 files changed
+29
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
# Upcoming Release Notes
|
||||
+1
-1
@@ -14,7 +14,7 @@ voxvera = ["templates/**", "src/**", "resources/**", "locales/**", "resources/bi
|
||||
|
||||
[project]
|
||||
name = "voxvera"
|
||||
version = "0.3.6"
|
||||
version = "0.3.7"
|
||||
description = "VoxVera CLI utilities"
|
||||
readme = "README.md"
|
||||
authors = [{name = "VoxVera"}]
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
__version__ = "0.3.6"
|
||||
__version__ = "0.3.7"
|
||||
|
||||
# Add the vendor directory to sys.path ONLY for PyInstaller (frozen) builds.
|
||||
# For pip/pipx installs the system/venv packages are correct and the vendored
|
||||
|
||||
@@ -124,14 +124,38 @@ Persistent=true
|
||||
["systemctl", "--user", "disable", "--now", "voxvera.service"],
|
||||
["systemctl", "--user", "enable", "--now", "voxvera-start.timer"],
|
||||
["systemctl", "--user", "start", "voxvera-start.service"],
|
||||
["loginctl", "enable-linger", os.environ.get("USER", "")],
|
||||
]
|
||||
for command in commands:
|
||||
try:
|
||||
subprocess.run(command, check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
subprocess.run(
|
||||
command,
|
||||
check=False,
|
||||
stdin=subprocess.DEVNULL,
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
timeout=10,
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
linger_output = ""
|
||||
try:
|
||||
result = subprocess.run(
|
||||
["loginctl", "show-user", os.environ.get("USER", ""), "--property=Linger", "--value"],
|
||||
check=False,
|
||||
stdin=subprocess.DEVNULL,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
timeout=5,
|
||||
)
|
||||
linger_output = (result.stdout or "").strip()
|
||||
if linger_output == "no":
|
||||
print("Note: user linger is not enabled. The recovery timer will run while you are logged in.")
|
||||
print(" To enable boot-time user services, run: sudo loginctl enable-linger $USER")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
print(f"Systemd user service installed: {self.service_path}")
|
||||
print(f"Systemd user timer installed: {self.timer_path}")
|
||||
print("Sites will be retried automatically after boot and every few minutes.")
|
||||
|
||||
Reference in new issue
Block a user