summaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* helpers/systemInfo: extract info fns (#14222)Vaxry2026-04-301-1/+34
|
* main: improve error reporting during initialization in main.cpp (#14181)Niko Savola2026-04-291-12/+15
|
* config: cleanup the entire config infrastructure (#13785)Vaxry2026-03-201-2/+2
| | | | Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
* main: add watchdog-fd and safe-mode options to help message (#12922)Aaron Blasko2026-01-081-1/+3
| | | Additionally, don't print the "you're not using start-hyprland" warning when using `--verify-config`
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-6/+7
|
* compositor: warn on start via a log about start-hyprlandVaxry2025-12-171-1/+7
|
* start: init start-hyprland and safe mode (#12484)Vaxry2025-12-051-1/+23
|
* hyprpm: check for abi strings in headersValid (#12504)Vaxry2025-12-041-2/+6
| | | | | --------- Co-authored-by: Virt <41426325+VirtCode@users.noreply.github.com>
* internal: prevent early exit processes from being zombies (#11995)Nikolai Nechaev2025-10-101-2/+2
| | | | | Prevent `exec`/`exec-once` processes which terminate very early (before Hyprland declares that it does not want to reap zombies) from getting stuck as zombie processes.
* exec: Spawn processes as direct children (#11735)Nikolai Nechaev2025-09-231-0/+14
| | | | | | | | | | | | | | | | * exec: Spawn processes as direct children Spawn processes as children rather than grandchildren. This way, spawned processes may track Hyprland's state by watching their parent, either directly or indirectly (e.g., Linux's `PR_SET_PDEATH_SIG`). Fixes #11728 * tests/exec: Add the test on process spawning Add a test that ensures that: - A spawned process remains a direct child of Hyprland; - Upon termination, the process does not become a zombie.
* internal: reference command-line arguments instead of copying them (#11422)Hato2025-08-171-68/+76
| | | | Eliminates the need to copy command-line arguments into a std::vector<std::string>, reducing memory usage and improving performance by referencing the original arguments directly.
* render: refactor class member vars (#10292)davc0n2025-05-051-2/+2
| | | | | * render: refactor class member vars * render: fix clang format
* config: Refactor class member vars (#10124)davc0n2025-04-201-1/+1
| | | | | * Refactor config classes vars * Fix clang format errors
* env: move XDG_SESSION_TYPE to before backend init (#9390)nyx2025-02-121-0/+1
|
* desktop: move desktop types to memory-safe pointersVaxry2025-01-261-0/+2
|
* core: add --verify-config to verify the config with HyprlandVaxry2025-01-241-5/+12
| | | | fixes #9135
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-1/+1
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* core: Add clang-tidy (#8664)Vaxry2024-12-071-13/+13
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* hyprland: convert std::cout and std::cerr to std::println()Toni500git2024-10-131-24/+27
|
* internal: improve version query and define HYPRLAND_VERSION (#8034)Toni500github2024-10-111-29/+5
|
* misc: refactor version command (#8027)davc0n2024-10-081-3/+12
| | | | Fixes a minor spacing issue if git status is not dirty. Additionally now should be easier to extend it eventually.
* core: add a --systeminfo parameter to gather systeminfo without runningvaxerski2024-09-251-0/+5
|
* version: log build aquamarine versionvaxerski2024-09-191-1/+2
| | | | log the built against aq version, might be useful when it's mismatched to identify the problem
* args: add --version to binary argsvaxerski2024-09-191-0/+22
|
* core: Preserve existing XDG_CURRENT_DESKTOP (#7347)Vladimir-csp2024-08-151-1/+0
| | | | | | | | | * Preserve existing XDG_CURRENT_DESKTOP * fix --------- Co-authored-by: vaxerski <vaxry@vaxry.net>
* core: Properly shutdown wl display (#7018)Ikalco2024-07-241-4/+2
| | | | | | | * correctly destroy wayland globals * properly shutdown and cleanup hyprland * appease the nitpick gods and some comments
* core: avoid locking 2 wayland sockets (#6971)diniamo2024-07-221-2/+2
| | | | | | | * fix: avoid locking 2 wayland sockets * format * fix formatting
* compositor: implement wayland socket handover (#6930)Ferdinand Bachmann2024-07-201-1/+43
| | | | | | | | | | | | | * compositor: implement wayland socket handover This commit implements the compositor side of the Wayland socket handover protocol as described in the [KDE Wiki]. The CLI options are chosen so that they are compatible with Kwin. [KDE Wiki]: https://invent.kde.org/plasma/kwin/-/wikis/Restarting * main: verify that --wayland-fd is a valid file descriptor * main: fail if only one of --socket and --wayland-fd is passed
* core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)Vaxry2024-04-281-2/+7
| | | | | | Moves the directory containing sockets and logs. Also restructures lockfiles a bit. For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
* main: Fix typo in std::cerr (#4359)Naksu2024-01-051-1/+1
|
* systemd: add HYPRLAND_NO_SD_NOTIFYvaxerski2023-12-211-1/+1
| | | | fixes #4217
* config: Use canonical instead of read_symlink (#4136)dranull2023-12-121-6/+8
|
* config: Minor --config improvements, fixes (#4034)dranull2023-12-041-3/+6
| | | | | | | | | | | | * Follow symlink, only file, absolute path for -c * Create config file only for default paths * Skip non-file source= glob results * Check for absolute path on XDG_CONFIG_HOME As per spec, all non-absolute paths should be ignored. https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
* env: add HYPRLAND_NO_RTVaxry2023-11-171-1/+2
|
* main: set isShuttingDown after display dispatch reaches the endVaxry2023-11-071-0/+2
| | | | relates to #3558
* refactor: manually resets singletons (#3395)memchr2023-09-221-0/+1
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-061-1/+1
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* internal: Formatter rework (#3186)Vaxry2023-09-061-1/+1
|
* compositor: fix missed raw throwsvaxerski2023-08-201-1/+1
|
* init: Fix for issue #2797 (#2799)ferrreo2023-07-241-1/+2
| | | | | | | * Fix for issue #2797 * Fix for issue #2797 * Fix for issue #2797
* init: Request SCHED_RR using CAP_SYS_NICE and add Python to nix dev shell ↵Mily2023-07-231-0/+1
| | | | | | | | | | | | | (#2690) * nix: add python3 to devShell * init: request SCHED_RR scheduling policy * init: checks if host supports reseting scheduler on fork * init: make gainRealTime more compatible with other OSes * init: remove linux-only code
* only return 0 when using -h (#2738)Aaron Blasko2023-07-181-1/+8
|
* Cleanup compositor deadcode (#2657)Mykola Perehudov2023-07-061-16/+0
| | | | | * Remove dead code as it is a part of CCompositor::cleanup * Unify sd_notify logic with Compositor lifetime
* main: fix segfault when -c is given with no other arguments (#2470)eriedaberrie2023-06-091-1/+1
|
* args: print help on invalid argvaxerski2023-04-101-3/+7
|
* Better and more secure argument parsing, and code reformatting (#1976)Andrew Nitrogenesis2023-04-071-20/+51
| | | | | | | | | * Better and more secure argument parsing, and code reformatting * Changes to resolve PR conversation * Formatted via clang-format, fixed typos * More typos
* core: remove old redundant shutdown stuffvaxerski2023-03-231-4/+0
|
* Compositor: fix crash on exitvaxerski2023-03-091-2/+4
|
* Initialize priority managers before server initvaxerski2023-03-051-4/+4
|