mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
feat(klipper): check for required user-groups
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user