main: add watchdog-fd and safe-mode options to help message (#12922)
Additionally, don't print the "you're not using start-hyprland" warning when using `--verify-config`
This commit is contained in:
parent
f767782e3f
commit
a649dbe4c4
1 changed files with 3 additions and 1 deletions
|
|
@ -31,6 +31,8 @@ static void help() {
|
||||||
--config FILE -c FILE - Specify config file to use
|
--config FILE -c FILE - Specify config file to use
|
||||||
--socket NAME - Sets the Wayland socket name (for Wayland socket handover)
|
--socket NAME - Sets the Wayland socket name (for Wayland socket handover)
|
||||||
--wayland-fd FD - Sets the Wayland socket fd (for Wayland socket handover)
|
--wayland-fd FD - Sets the Wayland socket fd (for Wayland socket handover)
|
||||||
|
--watchdog-fd FD - Used by start-hyprland
|
||||||
|
--safe-mode - Starts Hyprland in safe mode
|
||||||
--systeminfo - Prints system infos
|
--systeminfo - Prints system infos
|
||||||
--i-am-really-stupid - Omits root user privileges check (why would you do that?)
|
--i-am-really-stupid - Omits root user privileges check (why would you do that?)
|
||||||
--verify-config - Do not run Hyprland, only print if the config has any errors
|
--verify-config - Do not run Hyprland, only print if the config has any errors
|
||||||
|
|
@ -219,7 +221,7 @@ int main(int argc, char** argv) {
|
||||||
if (safeMode)
|
if (safeMode)
|
||||||
g_pCompositor->m_safeMode = true;
|
g_pCompositor->m_safeMode = true;
|
||||||
|
|
||||||
if (!watchdogOk)
|
if (!watchdogOk && !verifyConfig)
|
||||||
Log::logger->log(Log::WARN, "WARNING: Hyprland is being launched without start-hyprland. This is highly advised against.");
|
Log::logger->log(Log::WARN, "WARNING: Hyprland is being launched without start-hyprland. This is highly advised against.");
|
||||||
|
|
||||||
g_pCompositor->initServer(socketName, socketFd);
|
g_pCompositor->initServer(socketName, socketFd);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue