mirror of https://github.com/FreeRDP/FreeRDP
[client,sdl] update manpages
* Respect default configuration directory depending on WITH_FULL_CONFIG_PATH * Unify manpage files for SDL2 and SDL3
This commit is contained in:
parent
7aa72a7507
commit
04e3fe0b06
|
@ -77,6 +77,13 @@ if (NOT SDL2_FOUND AND NOT SDL3_FOUND)
|
||||||
message(FATAL_ERROR "No SDL library detected, giving up. Install SDL2 or SDL3 development package to fix")
|
message(FATAL_ERROR "No SDL library detected, giving up. Install SDL2 or SDL3 development package to fix")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Configuration settings for manpages
|
||||||
|
if (NOT WITH_FULL_CONFIG_PATH AND "${VENDOR}" STREQUAL "${PRODUCT}")
|
||||||
|
string(TOLOWER "${VENDOR}" VENDOR_PRODUCT)
|
||||||
|
else()
|
||||||
|
set(VENDOR_PRODUCT "${VENDOR}/${PRODUCT}")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(common)
|
add_subdirectory(common)
|
||||||
include_directories(common)
|
include_directories(common)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
set(DEPS
|
set(DEPS
|
||||||
sdl2-freerdp-channels.1.xml
|
../../common/man/sdl-freerdp-channels.1.xml
|
||||||
sdl2-freerdp-config.1.xml
|
../../common/man/sdl-freerdp-config.1.xml
|
||||||
sdl2-freerdp-examples.1.xml
|
../../common/man/sdl-freerdp-examples.1.xml
|
||||||
sdl2-freerdp-envvar.1.xml
|
../../common/man/sdl-freerdp-envvar.1.xml
|
||||||
)
|
)
|
||||||
|
|
||||||
generate_and_install_freerdp_man_from_xml(${MODULE_NAME} "1" "${DEPS}")
|
generate_and_install_freerdp_man_from_xml(${MODULE_NAME} "1" "${DEPS}")
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
<!ENTITY syntax SYSTEM "freerdp-argument.1.xml">
|
<!ENTITY syntax SYSTEM "freerdp-argument.1.xml">
|
||||||
<!ENTITY config SYSTEM "sdl2-freerdp-config.1.xml">
|
<!ENTITY config SYSTEM "sdl-freerdp-config.1.xml">
|
||||||
<!ENTITY envvar SYSTEM "sdl2-freerdp-envvar.1.xml">
|
<!ENTITY envvar SYSTEM "sdl-freerdp-envvar.1.xml">
|
||||||
<!ENTITY examples SYSTEM "sdl2-freerdp-examples.1.xml">
|
<!ENTITY examples SYSTEM "sdl-freerdp-examples.1.xml">
|
||||||
]
|
]
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
set(DEPS
|
set(DEPS
|
||||||
sdl3-freerdp-channels.1.xml
|
../../common/man/sdl-freerdp-channels.1.xml
|
||||||
sdl3-freerdp-config.1.xml
|
../../common/man/sdl-freerdp-config.1.xml
|
||||||
sdl3-freerdp-examples.1.xml
|
../../common/man/sdl-freerdp-examples.1.xml
|
||||||
sdl3-freerdp-envvar.1.xml
|
../../common/man/sdl-freerdp-envvar.1.xml
|
||||||
)
|
)
|
||||||
|
|
||||||
generate_and_install_freerdp_man_from_xml(${MODULE_NAME} "1" "${DEPS}")
|
generate_and_install_freerdp_man_from_xml(${MODULE_NAME} "1" "${DEPS}")
|
||||||
|
|
|
@ -1,81 +0,0 @@
|
||||||
<refsect1>
|
|
||||||
<title>Configuration file</title>
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term>Format and Location:</term>
|
|
||||||
<listitem>
|
|
||||||
<para>The configuration file is stored per user.<sbr/>
|
|
||||||
The <replaceable>XDG_CONFIG_HOME</replaceable> environment variable can be used to override the base directory.<sbr/>
|
|
||||||
This defaults to <replaceable>~/.config</replaceable>
|
|
||||||
The location relative to <replaceable>XDG_CONFIG_HOME</replaceable> is <replaceable>$XDG_CONFIG_HOME/@VENDOR@/@PRODUCT@/@MODULE_NAME@.json</replaceable><sbr/>
|
|
||||||
The configuration is stored in JSON format</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term>Supported options:</term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>SDL_KeyModMask</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<listitem>
|
|
||||||
<para>Defines the key combination required for SDL client shortcuts.<sbr/>
|
|
||||||
Default <replaceable>KMOD_RSHIFT</replaceable><sbr/>
|
|
||||||
An array of <replaceable>SDL_Keymod</replaceable> strings as defined at <replaceable>https://wiki.libsdl.org/SDL2/SDL_Keymod</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>SDL_Fullscreen</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<listitem>
|
|
||||||
<para>Toggles client fullscreen state.<sbr/>
|
|
||||||
Default <replaceable>SDL_SCANCODE_RETURN</replaceable>.<sbr/>
|
|
||||||
A string as defined at <replaceable>https://wiki.libsdl.org/SDL2/SDLScancodeLookup</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>SDL_Resizeable</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<listitem>
|
|
||||||
<para>Toggles local window resizeable state.<sbr/>
|
|
||||||
Default <replaceable>SDL_SCANCODE_R</replaceable>.<sbr/>
|
|
||||||
A string as defined at <replaceable>https://wiki.libsdl.org/SDL2/SDLScancodeLookup</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>SDL_Grab</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<listitem>
|
|
||||||
<para>Toggles keyboard and mouse grab state.<sbr/>
|
|
||||||
Default <replaceable>SDL_SCANCODE_G</replaceable>.<sbr/>
|
|
||||||
A string as defined at <replaceable>https://wiki.libsdl.org/SDL2/SDLScancodeLookup</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>SDL_Disconnect</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<varlistentry>
|
|
||||||
<listitem>
|
|
||||||
<para>Disconnects from the RDP session.<sbr/>
|
|
||||||
Default <replaceable>SDL_SCANCODE_D</replaceable>.<sbr/>
|
|
||||||
A string as defined at <replaceable>https://wiki.libsdl.org/SDL2/SDLScancodeLookup</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
</refsect1>
|
|
|
@ -1,15 +0,0 @@
|
||||||
<refsect1>
|
|
||||||
<title>Environment variables</title>
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term>wlog environment variable</term>
|
|
||||||
<listitem>
|
|
||||||
<para>sdl-freerdp uses wLog as its log facility, you can refer to the
|
|
||||||
corresponding man page (wlog(7)) for more informations. Arguments passed
|
|
||||||
via the <replaceable>/log-level</replaceable> or <replaceable>/log-filters</replaceable>
|
|
||||||
have precedence over the environment variables.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
</refsect1>
|
|
|
@ -1,95 +0,0 @@
|
||||||
<refsect1>
|
|
||||||
<title>Examples</title>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>sdl-freerdp connection.rdp /p:Pwd123! /f</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Connect in fullscreen mode using a stored configuration <replaceable>connection.rdp</replaceable> and the password <replaceable>Pwd123!</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>sdl-freerdp /u:USER /size:50%h /v:rdp.contoso.com</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Connect to host <replaceable>rdp.contoso.com</replaceable> with user <replaceable>USER</replaceable> and a size of <replaceable>50 percent of the height</replaceable>. If width (w) is set instead of height (h) like /size:50%w. 50 percent of the width is used.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>sdl-freerdp /u:CONTOSO\\JohnDoe /p:Pwd123! /v:rdp.contoso.com</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Connect to host <replaceable>rdp.contoso.com</replaceable> with user <replaceable>CONTOSO\\JohnDoe</replaceable> and password <replaceable>Pwd123!</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>sdl-freerdp /u:JohnDoe /p:Pwd123! /w:1366 /h:768 /v:192.168.1.100:4489</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Connect to host <replaceable>192.168.1.100</replaceable> on port <replaceable>4489</replaceable> with user <replaceable>JohnDoe</replaceable>, password <replaceable>Pwd123!</replaceable>. The screen width is set to <replaceable>1366</replaceable> and the height to <replaceable>768</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>sdl-freerdp /u:JohnDoe /p:Pwd123! /vmconnect:C824F53E-95D2-46C6-9A18-23A5BB403532 /v:192.168.1.100</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Establish a connection to host <replaceable>192.168.1.100</replaceable> with user <replaceable>JohnDoe</replaceable>, password <replaceable>Pwd123!</replaceable> and connect to Hyper-V console (use port 2179, disable negotiation) with VMID <replaceable>C824F53E-95D2-46C6-9A18-23A5BB403532</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>+clipboard</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate clipboard redirection</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/drive:home,/home/user</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate drive redirection of <replaceable>/home/user</replaceable> as home drive</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/smartcard:<device></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate smartcard redirection for device <replaceable>device</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/printer:<device>,<driver></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate printer redirection for printer <replaceable>device</replaceable> using driver <replaceable>driver</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/serial:<device></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate serial port redirection for port <replaceable>device</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/parallel:<device></command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate parallel port redirection for port <replaceable>device</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/sound:sys:alsa</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate audio output redirection using device <replaceable>sys:alsa</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/microphone:sys:alsa</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate audio input redirection using device <replaceable>sys:alsa</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/multimedia:sys:alsa</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate multimedia redirection using device <replaceable>sys:alsa</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><command>/usb:id,dev:054c:0268</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Activate USB device redirection for the device identified by <replaceable>054c:0268</replaceable></para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
</refsect1>
|
|
|
@ -3,9 +3,9 @@
|
||||||
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
<!ENTITY syntax SYSTEM "freerdp-argument.1.xml">
|
<!ENTITY syntax SYSTEM "freerdp-argument.1.xml">
|
||||||
<!ENTITY config SYSTEM "sdl3-freerdp-config.1.xml">
|
<!ENTITY config SYSTEM "sdl-freerdp-config.1.xml">
|
||||||
<!ENTITY envvar SYSTEM "sdl3-freerdp-envvar.1.xml">
|
<!ENTITY envvar SYSTEM "sdl-freerdp-envvar.1.xml">
|
||||||
<!ENTITY examples SYSTEM "sdl3-freerdp-examples.1.xml">
|
<!ENTITY examples SYSTEM "sdl-freerdp-examples.1.xml">
|
||||||
]
|
]
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<para>The configuration file is stored per user.<sbr/>
|
<para>The configuration file is stored per user.<sbr/>
|
||||||
The <replaceable>XDG_CONFIG_HOME</replaceable> environment variable can be used to override the base directory.<sbr/>
|
The <replaceable>XDG_CONFIG_HOME</replaceable> environment variable can be used to override the base directory.<sbr/>
|
||||||
This defaults to <replaceable>~/.config</replaceable>
|
This defaults to <replaceable>~/.config</replaceable>
|
||||||
The location relative to <replaceable>XDG_CONFIG_HOME</replaceable> is <replaceable>$XDG_CONFIG_HOME/@VENDOR@/@PRODUCT@/@MODULE_NAME@.json</replaceable><sbr/>
|
The location relative to <replaceable>XDG_CONFIG_HOME</replaceable> is <replaceable>$XDG_CONFIG_HOME/@VENDOR_PRODUCT@/sdl-freerdp.json</replaceable><sbr/>
|
||||||
The configuration is stored in JSON format</para>
|
The configuration is stored in JSON format</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
|
@ -35,8 +35,9 @@ function(generate_and_install_freerdp_man_from_xml target section dependencies)
|
||||||
configure_file(${template}.xml.in ${manpage}.xml @ONLY IMMEDIATE)
|
configure_file(${template}.xml.in ${manpage}.xml @ONLY IMMEDIATE)
|
||||||
|
|
||||||
foreach(DEP IN LISTS dependencies)
|
foreach(DEP IN LISTS dependencies)
|
||||||
|
get_filename_component(DNAME "${DEP}" NAME)
|
||||||
set(SRC ${CMAKE_CURRENT_SOURCE_DIR}/${DEP}.in)
|
set(SRC ${CMAKE_CURRENT_SOURCE_DIR}/${DEP}.in)
|
||||||
set(DST ${CMAKE_CURRENT_BINARY_DIR}/${DEP})
|
set(DST ${CMAKE_CURRENT_BINARY_DIR}/${DNAME})
|
||||||
|
|
||||||
if (EXISTS ${SRC})
|
if (EXISTS ${SRC})
|
||||||
message("generating ${DST} from ${SRC}")
|
message("generating ${DST} from ${SRC}")
|
||||||
|
|
Loading…
Reference in New Issue