feat(linux): use connector name as default display name on linux (#5423)
This commit is contained in:
@@ -9,7 +9,13 @@ const props = defineProps([
|
||||
])
|
||||
|
||||
const config = ref(props.config)
|
||||
const outputNamePlaceholder = (props.platform === 'windows') ? '{de9bb7e2-186e-505b-9e93-f48793333810}' : '0'
|
||||
let _outputNamePlaceholder = '0';
|
||||
if(props.platform === 'windows') {
|
||||
_outputNamePlaceholder = '{de9bb7e2-186e-505b-9e93-f48793333810}';
|
||||
} else if(props.platform === 'linux' || props.platform === 'freebsd') {
|
||||
_outputNamePlaceholder = 'DP-0';
|
||||
}
|
||||
const outputNamePlaceholder = _outputNamePlaceholder; // NOSONAR(javascript:S1481,javascript:S1854): Constant used by vue.js binding for placeholder below
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -33,21 +39,19 @@ const outputNamePlaceholder = (props.platform === 'windows') ? '{de9bb7e2-186e-5
|
||||
<template #freebsd>
|
||||
<pre style="white-space: pre-line;">
|
||||
Info: Detecting displays
|
||||
Info: Detected display: DVI-D-0 (id: 0) connected: false
|
||||
Info: Detected display: HDMI-0 (id: 1) connected: true
|
||||
Info: Detected display: DP-0 (id: 2) connected: true
|
||||
Info: Detected display: DP-1 (id: 3) connected: false
|
||||
Info: Detected display: DVI-D-1 (id: 4) connected: false
|
||||
Info: Detected display: HDMI-A-1 connected: true
|
||||
Info: Detected display: DP-1 connected: true
|
||||
Info: Detected display: DP-2 connected: false
|
||||
Info: Detected display: DVI-D-3 connected: false
|
||||
</pre>
|
||||
</template>
|
||||
<template #linux>
|
||||
<pre style="white-space: pre-line;">
|
||||
Info: Detecting displays
|
||||
Info: Detected display: DVI-D-0 (id: 0) connected: false
|
||||
Info: Detected display: HDMI-0 (id: 1) connected: true
|
||||
Info: Detected display: DP-0 (id: 2) connected: true
|
||||
Info: Detected display: DP-1 (id: 3) connected: false
|
||||
Info: Detected display: DVI-D-1 (id: 4) connected: false
|
||||
Info: Detected display: HDMI-A-1 connected: true
|
||||
Info: Detected display: DP-1 connected: true
|
||||
Info: Detected display: DP-2 connected: false
|
||||
Info: Detected display: DVI-D-3 connected: false
|
||||
</pre>
|
||||
</template>
|
||||
<template #macos>
|
||||
|
||||
@@ -333,7 +333,8 @@
|
||||
"origin_web_ui_allowed_pc": "Only localhost may access Web UI",
|
||||
"origin_web_ui_allowed_wan": "Anyone may access Web UI",
|
||||
"output_name": "Display Id",
|
||||
"output_name_desc_unix": "During Sunshine startup, you should see the list of detected displays. Note: You need to use the id value inside the parenthesis. Below is an example; the actual output can be found in the Troubleshooting tab.",
|
||||
"output_name_desc_macos": "During Sunshine startup, you should see the list of detected displays. Note: You need to use the id value inside the parenthesis. Below is an example; the actual output can be found in the Troubleshooting tab.",
|
||||
"output_name_desc_unix": "During Sunshine startup, you should see the list of detected displays. Note: It is recommended to use the display's connector name (e.g. DP-0) but depending on the capture backend used other values may be possible (see documentation for details). Below is an example; the actual output can be found in the Troubleshooting tab.",
|
||||
"output_name_desc_windows": "Manually specify a display device id to use for capture. If unset, the primary display is captured. Note: If you specified a GPU above, this display must be connected to that GPU. During Sunshine startup, you should see the list of detected displays. Below is an example; the actual output can be found in the Troubleshooting tab.",
|
||||
"packetsize": "Packet Size Limit",
|
||||
"packetsize_desc": "Limit the packet size to avoid fragmentation on a low MTU link. This helps reduce packet loss and micro-stuttering, while streaming over a layer 2 VPN to clients that cannot configure this value, e.g. Moonlight for Android/iOS. Reduce the bitrate when using low values. Values larger than 1456 require jumbo frames. Range: 0, 200-65535. A value of 0 will disable the limit.",
|
||||
|
||||
Reference in New Issue
Block a user