Watch
1
0
Fork
You've already forked souveraine
0

order sessiond at graphical-session-pre

The authority takes ext-session-lock before any surface exists, which is the
window -pre reserves. It cannot start earlier — ext-session-lock is a Wayland
protocol and needs the compositor's socket. Also drops the injected venv
variable from eleven surface scripts; each finds the path itself.
This commit is contained in:
Fimeg 2026-08-15 10:54:30 -04:00
commit e485b91c14
10 changed files with 17 additions and 15 deletions

View file

@ -1,8 +1,10 @@
[Unit]
Description=Souveraine session authority (lock-before-shell, lock-past-shell-death)
# Started explicitly from the hyprland.start hook after WAYLAND_DISPLAY is
# imported into the user manager — same lifecycle pattern as hypridle.
PartOf=graphical-session.target
# graphical-session-pre, not graphical-session: the authority takes
# ext-session-lock before any surface exists, and -pre is the window systemd
# already reserves for that. It cannot start earlier — ext-session-lock is a
# Wayland protocol and needs the compositor's socket.
PartOf=graphical-session-pre.target
[Service]
ExecStart=/usr/bin/souveraine-sessiond
@ -10,4 +12,4 @@ Restart=on-failure
RestartSec=1
[Install]
WantedBy=graphical-session.target
WantedBy=graphical-session-pre.target

View file

@ -1,4 +1,4 @@
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$(eval\_echo\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$HOME/.local/state/quickshell/.venv/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
import argparse
import math
import json

View file

@ -306,7 +306,7 @@ switch() {
fi
matugen "${matugen_args[@]}"
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
source "$HOME/.local/state/quickshell/.venv/bin/activate"
python3 "$SCRIPT_DIR/generate_colors_material.py" "${generate_colors_material_args[@]}" \
> "$STATE_DIR"/user/generated/material_colors.scss
deactivate
@ -339,7 +339,7 @@ main() {
detect_scheme_type_from_image() {
local img="$1"
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR"/scheme_for_image.py "$img" 2>/dev/null | tr -d '\n'
deactivate
}

View file

@ -1,4 +1,4 @@
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$(eval\_echo\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$HOME/.local/state/quickshell/.venv/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
import argparse
import re
import os

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR/find_regions.py" "$@"
deactivate

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR/least_busy_region.py" "$@"
deactivate

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR/text_color.py" "$@"
deactivate

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
source "$HOME/.local/state/quickshell/.venv/bin/activate"
GIO_USE_VFS=local "$SCRIPT_DIR/thumbgen.py" "$@"
THUMBGEN_EXIT_CODE=$?
deactivate

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR/token_from_key.py" "$@"
deactivate

View file

@ -307,7 +307,7 @@ switch() {
fi
matugen "${matugen_args[@]}"
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
source "$HOME/.local/state/quickshell/.venv/bin/activate"
python3 "$SCRIPT_DIR/generate_colors_material.py" "${generate_colors_material_args[@]}" \
> "$STATE_DIR"/user/generated/material_colors.scss
deactivate
@ -340,7 +340,7 @@ main() {
detect_scheme_type_from_image() {
local img="$1"
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
source "$HOME/.local/state/quickshell/.venv/bin/activate"
"$SCRIPT_DIR"/scheme_for_image.py "$img" 2>/dev/null | tr -d '\n'
deactivate
}