summaryrefslogtreecommitdiff
path: root/start/src
Commit message (Collapse)AuthorAgeFilesLines
* internal: silence compiler warnings about unused return values (#13997)Tom Englund2026-04-051-4/+17
| | | | | | | | | | | | | | | | * misc: silence warnings about ignoring return value on reads silence warnings on ignored return values on read() and print an error if it occurs. * misc: silence warnings about ignoring return value on writes silence warnings on ignored return values on write() and print an error where we can, or pass them the maybe_unused attribute. * misc: silence warnings about ignoring return value on pipe silence warnings on ignored return value on pipe(), print an error and exit on failure.
* start: add --force-nixgl and check /run/opengl-driver (#13385)Vaxry2026-02-273-2/+23
|
* start: use nixGL if Hyprland is nix but not NixOS (#12845)Vaxry2026-01-085-2/+147
| | | | | --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* start: add parent-death handling for BSDs (#12863)Hiroki Tagato2026-01-061-2/+13
| | | | | | | | | | | | | | | | | | * Add parent-death handling for BSDs prctl() is a system call specific to Linux. So we cannot use it on BSDs. FreeBSD has a system call procctl() which is similar to prctl(). We can use it with PROC_PDEATHSIG_CTL. OpenBSD, NetBSD, and DragonFly BSD do not appear to have a similar mechanism. So intead of relying on a system call, we need to manually poll ppid to see if the parent process has died. With the changes, the spawned Hyprland process is terminated when the launcher process exits, matching Linux behavior as closely as possible on BSD platforms. * Remove ppid polling on OpenBSD, NetBSD, and DragonFly BSD
* start: avoid crash in dtor after forceQuitVaxry2025-12-241-0/+2
|
* internal/start: More careful signal handling (#12573)Nikolai Nechaev2025-12-071-4/+14
| | | | | | | | | - Take out signal set up into a subroutine; - Use `sigaction` instead of `signal` for consistent behavior across UNIX platforms; - Enable a warning when a signal handler set up fails; - Don't do anything to SIGKILL, since it cannot be handled.
* start: init start-hyprland and safe mode (#12484)Vaxry2025-12-056-0/+325