diff options
author | Aaron Blasko <[email protected]> | 2024-12-19 01:33:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-19 01:33:57 +0100 |
commit | 7c43eed2c1e6c56ab56d1bded4a6701b5598b1c3 (patch) | |
tree | 09b2a1434e7cb2ccc6cd32f1b6bf299fedf7d6e4 | |
parent | 23e7d8f6a7d4e25c2dc6be33af07249570e66940 (diff) | |
download | Hyprland-7c43eed2c1e6c56ab56d1bded4a6701b5598b1c3.tar.gz Hyprland-7c43eed2c1e6c56ab56d1bded4a6701b5598b1c3.zip |
hyprpm: fix hyrpm sometimes returning 0 despite errors occuring (#8761)
* hyprpm: fix hyrpm sometimes returning 0 despite errors occuring
* there u go
-rw-r--r-- | hyprpm/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hyprpm/src/main.cpp b/hyprpm/src/main.cpp index 8e67af99..103132f9 100644 --- a/hyprpm/src/main.cpp +++ b/hyprpm/src/main.cpp @@ -73,7 +73,7 @@ int main(int argc, char** argv, char** envp) { if (command.empty()) { std::println(stderr, "{}", HELP); - return 0; + return 1; } g_pPluginManager = std::make_unique<CPluginManager>(); @@ -165,6 +165,7 @@ int main(int argc, char** argv, char** envp) { break; default: break; } + return 1; } else if (notify && !notifyFail) { g_pPluginManager->notify(ICON_OK, 0, 4000, "[hyprpm] Loaded plugins"); } |