refactor: Don't show drag and drop as an option on linux

This commit is contained in:
sithlord48
2025-04-03 23:50:31 -04:00
committed by Chris Rizzitello
parent e617e4b537
commit 6df96d4a56
3 changed files with 10 additions and 2 deletions

View File

@ -173,10 +173,11 @@ private:
" -1, --no-restart do not try to restart on failure.\n" \
"* --restart restart the server automatically if it fails.\n" \
" -l --log <file> write log messages to file.\n" \
" --enable-drag-drop enable file drag & drop.\n" \
" --enable-crypto enable TLS encryption.\n" \
" --tls-cert specify the path to the TLS certificate file.\n"
#define DRAG_AND_DROP " --enable-drag-drop enable file drag & drop.\n"
#define HELP_COMMON_INFO_2 \
" -h, --help display this help and exit.\n" \
" --version display version information and exit.\n"

View File

@ -125,6 +125,9 @@ void ClientApp::help()
<< " -a, --address <address> local network interface address.\n"
<< HELP_COMMON_INFO_1 << HELP_SYS_INFO << " --yscroll <delta> defines the vertical scrolling delta,\n"
<< " which is 120 by default.\n"
#ifndef WINAPI_XWINDOWS
<< DRAG_AND_DROP "\n"
#endif
<< " --sync-language enable language synchronization.\n"
<< " --invert-scroll invert scroll direction on this\n"
<< " computer.\n"

View File

@ -132,7 +132,11 @@ void ServerApp::help()
<< " [--no-wayland-ei]"
#endif
<< HELP_SYS_ARGS HELP_COMMON_ARGS "\n\n"
<< HELP_SYS_ARGS HELP_COMMON_ARGS "\n"
#ifndef WINAPI_XWINDOWS
<< DRAG_AND_DROP "\n"
#endif
<< "\n"
<< "Start the " << kAppName << " mouse/keyboard sharing server.\n"
<< "\n"
<< " -a, --address <address> listen for clients on the given address.\n"