feat(klipper): check for required user-groups

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2023-10-28 19:33:18 +02:00
parent ce0daa52ae
commit 2a100c2934
4 changed files with 59 additions and 4 deletions

View File

@@ -9,6 +9,9 @@
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
import os
import pwd
from pathlib import Path
# text colors and formats
@@ -19,6 +22,9 @@ COLOR_RED = "\033[91m" # bright red
COLOR_CYAN = "\033[96m" # bright cyan
RESET_FORMAT = "\033[0m" # reset format
# current user
CURRENT_USER = pwd.getpwuid(os.getuid())[0]
SYSTEMD = "/etc/systemd/system"
KLIPPER_DIR = f"{Path.home()}/klipper"