mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-13 08:01:29 +03:00
Compare commits
21 Commits
copilot/fi
...
22e72cea69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22e72cea69 | ||
|
|
5fc0367abd | ||
|
|
9111bfc1de | ||
|
|
9345fb754a | ||
|
|
779b7aaf02 | ||
|
|
b268aa1061 | ||
|
|
40f86fa639 | ||
|
|
980bc11e68 | ||
|
|
85db677982 | ||
|
|
2842315b1d | ||
|
|
6c541f7bfd | ||
|
|
067fab2b73 | ||
|
|
de6bf9dc7e | ||
|
|
54eae37038 | ||
|
|
0118e16132 | ||
|
|
626a091f55 | ||
|
|
4fa5e99e65 | ||
|
|
5ee9dcf42d | ||
|
|
6306f83316 | ||
|
|
96075fdf49 | ||
|
|
8c6dcf53a6 |
2
build.py
2
build.py
@@ -299,7 +299,7 @@ Version: %s
|
|||||||
Architecture: %s
|
Architecture: %s
|
||||||
Maintainer: rustdesk <info@rustdesk.com>
|
Maintainer: rustdesk <info@rustdesk.com>
|
||||||
Homepage: https://rustdesk.com
|
Homepage: https://rustdesk.com
|
||||||
Depends: libgtk-3-0, libxcb-randr0, libxdo3, libxfixes3, libxcb-shape0, libxcb-xfixes0, libasound2, libsystemd0, curl, libva2, libva-drm2, libva-x11-2, libgstreamer-plugins-base1.0-0, libpam0g, gstreamer1.0-pipewire%s
|
Depends: libgtk-3-0, libxcb-randr0, libxdo3 | libxdo4, libxfixes3, libxcb-shape0, libxcb-xfixes0, libasound2, libsystemd0, curl, libva2, libva-drm2, libva-x11-2, libgstreamer-plugins-base1.0-0, libpam0g, gstreamer1.0-pipewire%s
|
||||||
Recommends: libayatana-appindicator3-1
|
Recommends: libayatana-appindicator3-1
|
||||||
Description: A remote control software.
|
Description: A remote control software.
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
],
|
],
|
||||||
"finish-args": [
|
"finish-args": [
|
||||||
"--share=ipc",
|
"--share=ipc",
|
||||||
|
"--socket=wayland",
|
||||||
"--socket=x11",
|
"--socket=x11",
|
||||||
"--share=network",
|
"--share=network",
|
||||||
"--filesystem=home",
|
"--filesystem=home",
|
||||||
|
|||||||
@@ -1124,18 +1124,23 @@ class CustomAlertDialog extends StatelessWidget {
|
|||||||
|
|
||||||
Widget createDialogContent(String text) {
|
Widget createDialogContent(String text) {
|
||||||
final RegExp linkRegExp = RegExp(r'(https?://[^\s]+)');
|
final RegExp linkRegExp = RegExp(r'(https?://[^\s]+)');
|
||||||
|
bool hasLink = linkRegExp.hasMatch(text);
|
||||||
|
|
||||||
|
// Early return: no link, use default theme color
|
||||||
|
if (!hasLink) {
|
||||||
|
return SelectableText(text, style: const TextStyle(fontSize: 15));
|
||||||
|
}
|
||||||
|
|
||||||
final List<TextSpan> spans = [];
|
final List<TextSpan> spans = [];
|
||||||
int start = 0;
|
int start = 0;
|
||||||
bool hasLink = false;
|
|
||||||
|
|
||||||
linkRegExp.allMatches(text).forEach((match) {
|
linkRegExp.allMatches(text).forEach((match) {
|
||||||
hasLink = true;
|
|
||||||
if (match.start > start) {
|
if (match.start > start) {
|
||||||
spans.add(TextSpan(text: text.substring(start, match.start)));
|
spans.add(TextSpan(text: text.substring(start, match.start)));
|
||||||
}
|
}
|
||||||
spans.add(TextSpan(
|
spans.add(TextSpan(
|
||||||
text: match.group(0) ?? '',
|
text: match.group(0) ?? '',
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.blue,
|
color: Colors.blue,
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
),
|
),
|
||||||
@@ -1153,13 +1158,9 @@ Widget createDialogContent(String text) {
|
|||||||
spans.add(TextSpan(text: text.substring(start)));
|
spans.add(TextSpan(text: text.substring(start)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasLink) {
|
|
||||||
return SelectableText(text, style: const TextStyle(fontSize: 15));
|
|
||||||
}
|
|
||||||
|
|
||||||
return SelectableText.rich(
|
return SelectableText.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
style: TextStyle(color: Colors.black, fontSize: 15),
|
style: const TextStyle(fontSize: 15),
|
||||||
children: spans,
|
children: spans,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ enum UserStatus { kDisabled, kNormal, kUnverified }
|
|||||||
// Is all the fields of the user needed?
|
// Is all the fields of the user needed?
|
||||||
class UserPayload {
|
class UserPayload {
|
||||||
String name = '';
|
String name = '';
|
||||||
|
String displayName = '';
|
||||||
String email = '';
|
String email = '';
|
||||||
String note = '';
|
String note = '';
|
||||||
String? verifier;
|
String? verifier;
|
||||||
@@ -33,6 +34,7 @@ class UserPayload {
|
|||||||
|
|
||||||
UserPayload.fromJson(Map<String, dynamic> json)
|
UserPayload.fromJson(Map<String, dynamic> json)
|
||||||
: name = json['name'] ?? '',
|
: name = json['name'] ?? '',
|
||||||
|
displayName = json['display_name'] ?? '',
|
||||||
email = json['email'] ?? '',
|
email = json['email'] ?? '',
|
||||||
note = json['note'] ?? '',
|
note = json['note'] ?? '',
|
||||||
verifier = json['verifier'],
|
verifier = json['verifier'],
|
||||||
@@ -46,6 +48,7 @@ class UserPayload {
|
|||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final Map<String, dynamic> map = {
|
final Map<String, dynamic> map = {
|
||||||
'name': name,
|
'name': name,
|
||||||
|
'display_name': displayName,
|
||||||
'status': status == UserStatus.kDisabled
|
'status': status == UserStatus.kDisabled
|
||||||
? 0
|
? 0
|
||||||
: status == UserStatus.kUnverified
|
: status == UserStatus.kUnverified
|
||||||
@@ -58,9 +61,14 @@ class UserPayload {
|
|||||||
Map<String, dynamic> toGroupCacheJson() {
|
Map<String, dynamic> toGroupCacheJson() {
|
||||||
final Map<String, dynamic> map = {
|
final Map<String, dynamic> map = {
|
||||||
'name': name,
|
'name': name,
|
||||||
|
'display_name': displayName,
|
||||||
};
|
};
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get displayNameOrName {
|
||||||
|
return displayName.trim().isEmpty ? name : displayName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class PeerPayload {
|
class PeerPayload {
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class ButtonOP extends StatelessWidget {
|
|||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text('${translate("Continue with")} $opLabel')),
|
child: Text(translate("Continue with {$opLabel}"))),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -158,12 +158,18 @@ class _MyGroupState extends State<MyGroup> {
|
|||||||
return Obx(() {
|
return Obx(() {
|
||||||
final userItems = gFFI.groupModel.users.where((p0) {
|
final userItems = gFFI.groupModel.users.where((p0) {
|
||||||
if (searchAccessibleItemNameText.isNotEmpty) {
|
if (searchAccessibleItemNameText.isNotEmpty) {
|
||||||
return p0.name
|
final search = searchAccessibleItemNameText.value.toLowerCase();
|
||||||
.toLowerCase()
|
return p0.name.toLowerCase().contains(search) ||
|
||||||
.contains(searchAccessibleItemNameText.value.toLowerCase());
|
p0.displayNameOrName.toLowerCase().contains(search);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}).toList();
|
}).toList();
|
||||||
|
// Count occurrences of each displayNameOrName to detect duplicates
|
||||||
|
final displayNameCount = <String, int>{};
|
||||||
|
for (final u in userItems) {
|
||||||
|
final dn = u.displayNameOrName;
|
||||||
|
displayNameCount[dn] = (displayNameCount[dn] ?? 0) + 1;
|
||||||
|
}
|
||||||
final deviceGroupItems = gFFI.groupModel.deviceGroups.where((p0) {
|
final deviceGroupItems = gFFI.groupModel.deviceGroups.where((p0) {
|
||||||
if (searchAccessibleItemNameText.isNotEmpty) {
|
if (searchAccessibleItemNameText.isNotEmpty) {
|
||||||
return p0.name
|
return p0.name
|
||||||
@@ -177,7 +183,8 @@ class _MyGroupState extends State<MyGroup> {
|
|||||||
itemCount: deviceGroupItems.length + userItems.length,
|
itemCount: deviceGroupItems.length + userItems.length,
|
||||||
itemBuilder: (context, index) => index < deviceGroupItems.length
|
itemBuilder: (context, index) => index < deviceGroupItems.length
|
||||||
? _buildDeviceGroupItem(deviceGroupItems[index])
|
? _buildDeviceGroupItem(deviceGroupItems[index])
|
||||||
: _buildUserItem(userItems[index - deviceGroupItems.length]));
|
: _buildUserItem(userItems[index - deviceGroupItems.length],
|
||||||
|
displayNameCount));
|
||||||
var maxHeight = max(MediaQuery.of(context).size.height / 6, 100.0);
|
var maxHeight = max(MediaQuery.of(context).size.height / 6, 100.0);
|
||||||
return Obx(() => stateGlobal.isPortrait.isFalse
|
return Obx(() => stateGlobal.isPortrait.isFalse
|
||||||
? listView(false)
|
? listView(false)
|
||||||
@@ -185,8 +192,14 @@ class _MyGroupState extends State<MyGroup> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildUserItem(UserPayload user) {
|
Widget _buildUserItem(UserPayload user, Map<String, int> displayNameCount) {
|
||||||
final username = user.name;
|
final username = user.name;
|
||||||
|
final dn = user.displayNameOrName;
|
||||||
|
final isDuplicate = (displayNameCount[dn] ?? 0) > 1;
|
||||||
|
final displayName =
|
||||||
|
isDuplicate && user.displayName.trim().isNotEmpty
|
||||||
|
? '${user.displayName} (@$username)'
|
||||||
|
: dn;
|
||||||
return InkWell(onTap: () {
|
return InkWell(onTap: () {
|
||||||
isSelectedDeviceGroup.value = false;
|
isSelectedDeviceGroup.value = false;
|
||||||
if (selectedAccessibleItemName.value != username) {
|
if (selectedAccessibleItemName.value != username) {
|
||||||
@@ -222,14 +235,14 @@ class _MyGroupState extends State<MyGroup> {
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
username.characters.first.toUpperCase(),
|
displayName.characters.first.toUpperCase(),
|
||||||
style: TextStyle(color: Colors.white),
|
style: TextStyle(color: Colors.white),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
).marginOnly(right: 4),
|
).marginOnly(right: 4),
|
||||||
if (isMe) Flexible(child: Text(username)),
|
if (isMe) Flexible(child: Text(displayName)),
|
||||||
if (isMe)
|
if (isMe)
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -246,7 +259,7 @@ class _MyGroupState extends State<MyGroup> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!isMe) Expanded(child: Text(username)),
|
if (!isMe) Expanded(child: Text(displayName)),
|
||||||
],
|
],
|
||||||
).paddingSymmetric(vertical: 4),
|
).paddingSymmetric(vertical: 4),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2016,7 +2016,9 @@ class _AccountState extends State<_Account> {
|
|||||||
|
|
||||||
Widget accountAction() {
|
Widget accountAction() {
|
||||||
return Obx(() => _Button(
|
return Obx(() => _Button(
|
||||||
gFFI.userModel.userName.value.isEmpty ? 'Login' : 'Logout',
|
gFFI.userModel.userName.value.isEmpty
|
||||||
|
? 'Login'
|
||||||
|
: '${translate('Logout')} (${gFFI.userModel.accountLabelWithHandle})',
|
||||||
() => {
|
() => {
|
||||||
gFFI.userModel.userName.value.isEmpty
|
gFFI.userModel.userName.value.isEmpty
|
||||||
? loginDialog()
|
? loginDialog()
|
||||||
@@ -2037,6 +2039,10 @@ class _AccountState extends State<_Account> {
|
|||||||
offstage: gFFI.userModel.userName.value.isEmpty,
|
offstage: gFFI.userModel.userName.value.isEmpty,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
if (gFFI.userModel.displayName.value.trim().isNotEmpty &&
|
||||||
|
gFFI.userModel.displayName.value.trim() !=
|
||||||
|
gFFI.userModel.userName.value.trim())
|
||||||
|
text('Display Name', gFFI.userModel.displayName.value.trim()),
|
||||||
text('Username', gFFI.userModel.userName.value),
|
text('Username', gFFI.userModel.userName.value),
|
||||||
// text('Group', gFFI.groupModel.groupName.value),
|
// text('Group', gFFI.groupModel.groupName.value),
|
||||||
],
|
],
|
||||||
@@ -2130,7 +2136,9 @@ class _PluginState extends State<_Plugin> {
|
|||||||
|
|
||||||
Widget accountAction() {
|
Widget accountAction() {
|
||||||
return Obx(() => _Button(
|
return Obx(() => _Button(
|
||||||
gFFI.userModel.userName.value.isEmpty ? 'Login' : 'Logout',
|
gFFI.userModel.userName.value.isEmpty
|
||||||
|
? 'Login'
|
||||||
|
: '${translate('Logout')} (${gFFI.userModel.accountLabelWithHandle})',
|
||||||
() => {
|
() => {
|
||||||
gFFI.userModel.userName.value.isEmpty
|
gFFI.userModel.userName.value.isEmpty
|
||||||
? loginDialog()
|
? loginDialog()
|
||||||
@@ -2538,6 +2546,49 @@ class WaylandCard extends StatefulWidget {
|
|||||||
|
|
||||||
class _WaylandCardState extends State<WaylandCard> {
|
class _WaylandCardState extends State<WaylandCard> {
|
||||||
final restoreTokenKey = 'wayland-restore-token';
|
final restoreTokenKey = 'wayland-restore-token';
|
||||||
|
static const _kClearShortcutsInhibitorEventKey =
|
||||||
|
'clear-gnome-shortcuts-inhibitor-permission-res';
|
||||||
|
final _clearShortcutsInhibitorFailedMsg = ''.obs;
|
||||||
|
// Don't show the shortcuts permission reset button for now.
|
||||||
|
// Users can change it manually:
|
||||||
|
// "Settings" -> "Apps" -> "RustDesk" -> "Permissions" -> "Inhibit Shortcuts".
|
||||||
|
// For resetting(clearing) the permission from the portal permission store, you can
|
||||||
|
// use (replace <desktop-id> with the RustDesk desktop file ID):
|
||||||
|
// busctl --user call org.freedesktop.impl.portal.PermissionStore \
|
||||||
|
// /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore \
|
||||||
|
// DeletePermission sss "gnome" "shortcuts-inhibitor" "<desktop-id>"
|
||||||
|
// On a native install this is typically "rustdesk.desktop"; on Flatpak it is usually
|
||||||
|
// the exported desktop ID derived from the Flatpak app-id (e.g. "com.rustdesk.RustDesk.desktop").
|
||||||
|
//
|
||||||
|
// We may add it back in the future if needed.
|
||||||
|
final showResetInhibitorPermission = false;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
if (showResetInhibitorPermission) {
|
||||||
|
platformFFI.registerEventHandler(
|
||||||
|
_kClearShortcutsInhibitorEventKey, _kClearShortcutsInhibitorEventKey,
|
||||||
|
(evt) async {
|
||||||
|
if (!mounted) return;
|
||||||
|
if (evt['success'] == true) {
|
||||||
|
setState(() {});
|
||||||
|
} else {
|
||||||
|
_clearShortcutsInhibitorFailedMsg.value =
|
||||||
|
evt['msg'] as String? ?? 'Unknown error';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
if (showResetInhibitorPermission) {
|
||||||
|
platformFFI.unregisterEventHandler(
|
||||||
|
_kClearShortcutsInhibitorEventKey, _kClearShortcutsInhibitorEventKey);
|
||||||
|
}
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -2545,9 +2596,16 @@ class _WaylandCardState extends State<WaylandCard> {
|
|||||||
future: bind.mainHandleWaylandScreencastRestoreToken(
|
future: bind.mainHandleWaylandScreencastRestoreToken(
|
||||||
key: restoreTokenKey, value: "get"),
|
key: restoreTokenKey, value: "get"),
|
||||||
hasData: (restoreToken) {
|
hasData: (restoreToken) {
|
||||||
|
final hasShortcutsPermission = showResetInhibitorPermission &&
|
||||||
|
bind.mainGetCommonSync(
|
||||||
|
key: "has-gnome-shortcuts-inhibitor-permission") ==
|
||||||
|
"true";
|
||||||
|
|
||||||
final children = [
|
final children = [
|
||||||
if (restoreToken.isNotEmpty)
|
if (restoreToken.isNotEmpty)
|
||||||
_buildClearScreenSelection(context, restoreToken),
|
_buildClearScreenSelection(context, restoreToken),
|
||||||
|
if (hasShortcutsPermission)
|
||||||
|
_buildClearShortcutsInhibitorPermission(context),
|
||||||
];
|
];
|
||||||
return Offstage(
|
return Offstage(
|
||||||
offstage: children.isEmpty,
|
offstage: children.isEmpty,
|
||||||
@@ -2592,6 +2650,50 @@ class _WaylandCardState extends State<WaylandCard> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget _buildClearShortcutsInhibitorPermission(BuildContext context) {
|
||||||
|
onConfirm() {
|
||||||
|
_clearShortcutsInhibitorFailedMsg.value = '';
|
||||||
|
bind.mainSetCommon(
|
||||||
|
key: "clear-gnome-shortcuts-inhibitor-permission", value: "");
|
||||||
|
gFFI.dialogManager.dismissAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
showConfirmMsgBox() => msgBoxCommon(
|
||||||
|
gFFI.dialogManager,
|
||||||
|
'Confirmation',
|
||||||
|
Text(
|
||||||
|
translate('confirm-clear-shortcuts-inhibitor-permission-tip'),
|
||||||
|
),
|
||||||
|
[
|
||||||
|
dialogButton('OK', onPressed: onConfirm),
|
||||||
|
dialogButton('Cancel',
|
||||||
|
onPressed: () => gFFI.dialogManager.dismissAll())
|
||||||
|
]);
|
||||||
|
|
||||||
|
return Column(children: [
|
||||||
|
Obx(
|
||||||
|
() => _clearShortcutsInhibitorFailedMsg.value.isEmpty
|
||||||
|
? Offstage()
|
||||||
|
: Align(
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
|
child: Text(_clearShortcutsInhibitorFailedMsg.value,
|
||||||
|
style: DefaultTextStyle.of(context)
|
||||||
|
.style
|
||||||
|
.copyWith(color: Colors.red))
|
||||||
|
.marginOnly(bottom: 10.0)),
|
||||||
|
),
|
||||||
|
_Button(
|
||||||
|
'Reset keyboard shortcuts permission',
|
||||||
|
showConfirmMsgBox,
|
||||||
|
tip: 'clear-shortcuts-inhibitor-permission-tip',
|
||||||
|
style: ButtonStyle(
|
||||||
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
|
Theme.of(context).colorScheme.error.withOpacity(0.75)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore: non_constant_identifier_names
|
// ignore: non_constant_identifier_names
|
||||||
|
|||||||
@@ -1861,8 +1861,18 @@ class _KeyboardMenu extends StatelessWidget {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pi.isWayland && mode.key != kKeyMapMode) {
|
if (pi.isWayland) {
|
||||||
continue;
|
// Legacy mode is hidden on desktop control side because dead keys
|
||||||
|
// don't work properly on Wayland. When the control side is mobile,
|
||||||
|
// Legacy mode is used automatically (mobile always sends Legacy events).
|
||||||
|
if (mode.key == kKeyLegacyMode) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// Translate mode requires server >= 1.4.6.
|
||||||
|
if (mode.key == kKeyTranslateMode &&
|
||||||
|
versionCmp(pi.version, '1.4.6') < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var text = translate(mode.menu);
|
var text = translate(mode.menu);
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
|||||||
double _viewInsetsBottom = 0;
|
double _viewInsetsBottom = 0;
|
||||||
final _uniqueKey = UniqueKey();
|
final _uniqueKey = UniqueKey();
|
||||||
Timer? _timerDidChangeMetrics;
|
Timer? _timerDidChangeMetrics;
|
||||||
|
Timer? _iosKeyboardWorkaroundTimer;
|
||||||
|
|
||||||
final _blockableOverlayState = BlockableOverlayState();
|
final _blockableOverlayState = BlockableOverlayState();
|
||||||
|
|
||||||
@@ -140,6 +141,7 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
|||||||
await gFFI.close();
|
await gFFI.close();
|
||||||
_timer?.cancel();
|
_timer?.cancel();
|
||||||
_timerDidChangeMetrics?.cancel();
|
_timerDidChangeMetrics?.cancel();
|
||||||
|
_iosKeyboardWorkaroundTimer?.cancel();
|
||||||
gFFI.dialogManager.dismissAll();
|
gFFI.dialogManager.dismissAll();
|
||||||
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
||||||
overlays: SystemUiOverlay.values);
|
overlays: SystemUiOverlay.values);
|
||||||
@@ -206,7 +208,24 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
|||||||
gFFI.ffiModel.pi.version.isNotEmpty) {
|
gFFI.ffiModel.pi.version.isNotEmpty) {
|
||||||
gFFI.invokeMethod("enable_soft_keyboard", false);
|
gFFI.invokeMethod("enable_soft_keyboard", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround for iOS: physical keyboard input fails after virtual keyboard is hidden
|
||||||
|
// https://github.com/flutter/flutter/issues/39900
|
||||||
|
// https://github.com/rustdesk/rustdesk/discussions/11843#discussioncomment-13499698 - Virtual keyboard issue
|
||||||
|
if (isIOS) {
|
||||||
|
_iosKeyboardWorkaroundTimer?.cancel();
|
||||||
|
_iosKeyboardWorkaroundTimer = Timer(Duration(milliseconds: 100), () {
|
||||||
|
if (!mounted) return;
|
||||||
|
_physicalFocusNode.unfocus();
|
||||||
|
_iosKeyboardWorkaroundTimer = Timer(Duration(milliseconds: 50), () {
|
||||||
|
if (!mounted) return;
|
||||||
|
_physicalFocusNode.requestFocus();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
_iosKeyboardWorkaroundTimer?.cancel();
|
||||||
|
_iosKeyboardWorkaroundTimer = null;
|
||||||
_timer?.cancel();
|
_timer?.cancel();
|
||||||
_timer = Timer(kMobileDelaySoftKeyboardFocus, () {
|
_timer = Timer(kMobileDelaySoftKeyboardFocus, () {
|
||||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
||||||
|
|||||||
@@ -688,7 +688,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
|
|||||||
SettingsTile(
|
SettingsTile(
|
||||||
title: Obx(() => Text(gFFI.userModel.userName.value.isEmpty
|
title: Obx(() => Text(gFFI.userModel.userName.value.isEmpty
|
||||||
? translate('Login')
|
? translate('Login')
|
||||||
: '${translate('Logout')} (${gFFI.userModel.userName.value})')),
|
: '${translate('Logout')} (${gFFI.userModel.accountLabelWithHandle})')),
|
||||||
leading: Icon(Icons.person),
|
leading: Icon(Icons.person),
|
||||||
onPressed: (context) {
|
onPressed: (context) {
|
||||||
if (gFFI.userModel.userName.value.isEmpty) {
|
if (gFFI.userModel.userName.value.isEmpty) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_hbb/common.dart';
|
import 'package:flutter_hbb/common.dart';
|
||||||
@@ -41,6 +42,9 @@ class _TerminalPageState extends State<TerminalPage>
|
|||||||
final GlobalKey _keyboardKey = GlobalKey();
|
final GlobalKey _keyboardKey = GlobalKey();
|
||||||
double _keyboardHeight = 0;
|
double _keyboardHeight = 0;
|
||||||
late bool _showTerminalExtraKeys;
|
late bool _showTerminalExtraKeys;
|
||||||
|
// For iOS edge swipe gesture
|
||||||
|
double _swipeStartX = 0;
|
||||||
|
double _swipeCurrentX = 0;
|
||||||
|
|
||||||
// For web only.
|
// For web only.
|
||||||
// 'monospace' does not work on web, use Google Fonts, `??` is only for null safety.
|
// 'monospace' does not work on web, use Google Fonts, `??` is only for null safety.
|
||||||
@@ -147,7 +151,7 @@ class _TerminalPageState extends State<TerminalPage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget buildBody() {
|
Widget buildBody() {
|
||||||
return Scaffold(
|
final scaffold = Scaffold(
|
||||||
resizeToAvoidBottomInset: false, // Disable automatic layout adjustment; manually control UI updates to prevent flickering when the keyboard shows/hides
|
resizeToAvoidBottomInset: false, // Disable automatic layout adjustment; manually control UI updates to prevent flickering when the keyboard shows/hides
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
body: Stack(
|
body: Stack(
|
||||||
@@ -192,9 +196,108 @@ class _TerminalPageState extends State<TerminalPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (_showTerminalExtraKeys) _buildFloatingKeyboard(),
|
if (_showTerminalExtraKeys) _buildFloatingKeyboard(),
|
||||||
|
// iOS-style circular close button in top-right corner
|
||||||
|
if (isIOS) _buildCloseButton(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Add iOS edge swipe gesture to exit (similar to Android back button)
|
||||||
|
if (isIOS) {
|
||||||
|
return LayoutBuilder(
|
||||||
|
builder: (context, constraints) {
|
||||||
|
final screenWidth = constraints.maxWidth;
|
||||||
|
// Base thresholds on screen width but clamp to reasonable logical pixel ranges
|
||||||
|
// Edge detection region: ~10% of width, clamped between 20 and 80 logical pixels
|
||||||
|
final edgeThreshold = (screenWidth * 0.1).clamp(20.0, 80.0);
|
||||||
|
// Required horizontal movement: ~25% of width, clamped between 80 and 300 logical pixels
|
||||||
|
final swipeThreshold = (screenWidth * 0.25).clamp(80.0, 300.0);
|
||||||
|
|
||||||
|
return RawGestureDetector(
|
||||||
|
behavior: HitTestBehavior.translucent,
|
||||||
|
gestures: <Type, GestureRecognizerFactory>{
|
||||||
|
HorizontalDragGestureRecognizer: GestureRecognizerFactoryWithHandlers<HorizontalDragGestureRecognizer>(
|
||||||
|
() => HorizontalDragGestureRecognizer(
|
||||||
|
debugOwner: this,
|
||||||
|
// Only respond to touch input, exclude mouse/trackpad
|
||||||
|
supportedDevices: kTouchBasedDeviceKinds,
|
||||||
|
),
|
||||||
|
(HorizontalDragGestureRecognizer instance) {
|
||||||
|
instance
|
||||||
|
// Capture initial touch-down position (before touch slop)
|
||||||
|
..onDown = (details) {
|
||||||
|
_swipeStartX = details.localPosition.dx;
|
||||||
|
_swipeCurrentX = details.localPosition.dx;
|
||||||
|
}
|
||||||
|
..onUpdate = (details) {
|
||||||
|
_swipeCurrentX = details.localPosition.dx;
|
||||||
|
}
|
||||||
|
..onEnd = (details) {
|
||||||
|
// Check if swipe started from left edge and moved right
|
||||||
|
if (_swipeStartX < edgeThreshold && (_swipeCurrentX - _swipeStartX) > swipeThreshold) {
|
||||||
|
clientClose(sessionId, _ffi);
|
||||||
|
}
|
||||||
|
_swipeStartX = 0;
|
||||||
|
_swipeCurrentX = 0;
|
||||||
|
}
|
||||||
|
..onCancel = () {
|
||||||
|
_swipeStartX = 0;
|
||||||
|
_swipeCurrentX = 0;
|
||||||
|
};
|
||||||
|
},
|
||||||
|
),
|
||||||
|
},
|
||||||
|
child: scaffold,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return scaffold;
|
||||||
|
}
|
||||||
|
|
||||||
|
Widget _buildCloseButton() {
|
||||||
|
return Positioned(
|
||||||
|
top: 0,
|
||||||
|
right: 0,
|
||||||
|
child: SafeArea(
|
||||||
|
minimum: const EdgeInsets.only(
|
||||||
|
top: 16, // iOS standard margin
|
||||||
|
right: 16, // iOS standard margin
|
||||||
|
),
|
||||||
|
child: Semantics(
|
||||||
|
button: true,
|
||||||
|
label: translate('Close'),
|
||||||
|
child: Container(
|
||||||
|
width: 44, // iOS standard tap target size
|
||||||
|
height: 44,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.black.withOpacity(0.5), // Half transparency
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
),
|
||||||
|
child: Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
shape: const CircleBorder(),
|
||||||
|
clipBehavior: Clip.antiAlias,
|
||||||
|
child: InkWell(
|
||||||
|
customBorder: const CircleBorder(),
|
||||||
|
onTap: () {
|
||||||
|
clientClose(sessionId, _ffi);
|
||||||
|
},
|
||||||
|
child: Tooltip(
|
||||||
|
message: translate('Close'),
|
||||||
|
child: const Icon(
|
||||||
|
Icons.chevron_left, // iOS-style back arrow
|
||||||
|
color: Colors.white,
|
||||||
|
size: 28,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildFloatingKeyboard() {
|
Widget _buildFloatingKeyboard() {
|
||||||
|
|||||||
@@ -2215,10 +2215,32 @@ class CanvasModel with ChangeNotifier {
|
|||||||
double w = size.width - leftToEdge - rightToEdge;
|
double w = size.width - leftToEdge - rightToEdge;
|
||||||
double h = size.height - topToEdge - bottomToEdge;
|
double h = size.height - topToEdge - bottomToEdge;
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
|
// Account for horizontal safe area insets on both orientations.
|
||||||
|
w = w - mediaData.padding.left - mediaData.padding.right;
|
||||||
|
// Vertically, subtract the bottom keyboard inset (viewInsets.bottom) and any
|
||||||
|
// bottom overlay (e.g. key-help tools) so the canvas is not covered.
|
||||||
h = h -
|
h = h -
|
||||||
mediaData.viewInsets.bottom -
|
mediaData.viewInsets.bottom -
|
||||||
(parent.target?.cursorModel.keyHelpToolsRectToAdjustCanvas?.bottom ??
|
(parent.target?.cursorModel.keyHelpToolsRectToAdjustCanvas?.bottom ??
|
||||||
0);
|
0);
|
||||||
|
// Orientation-specific handling:
|
||||||
|
// - Portrait: additionally subtract top padding (e.g. status bar / notch)
|
||||||
|
// - Landscape: does not subtract mediaData.padding.top/bottom (home indicator auto-hides)
|
||||||
|
final isPortrait = size.height > size.width;
|
||||||
|
if (isPortrait) {
|
||||||
|
// In portrait mode, subtract the top safe-area padding (e.g. status bar / notch)
|
||||||
|
// so the remote image is not truncated, while keeping the bottom inset to avoid
|
||||||
|
// introducing unnecessary blank space around the canvas.
|
||||||
|
//
|
||||||
|
// iOS -> Android, portrait, adjust mode:
|
||||||
|
// h = h (no padding subtracted): top and bottom are truncated
|
||||||
|
// https://github.com/user-attachments/assets/30ed4559-c27e-432b-847f-8fec23c9f998
|
||||||
|
// h = h - top - bottom: extra blank spaces appear
|
||||||
|
// https://github.com/user-attachments/assets/12a98817-3b4e-43aa-be0f-4b03cf364b7e
|
||||||
|
// h = h - top (current): works fine
|
||||||
|
// https://github.com/user-attachments/assets/95f047f2-7f47-4a36-8113-5023989a0c81
|
||||||
|
h = h - mediaData.padding.top;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return Size(w < 0 ? 0 : w, h < 0 ? 0 : h);
|
return Size(w < 0 ? 0 : w, h < 0 ? 0 : h);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,23 @@ bool refreshingUser = false;
|
|||||||
|
|
||||||
class UserModel {
|
class UserModel {
|
||||||
final RxString userName = ''.obs;
|
final RxString userName = ''.obs;
|
||||||
|
final RxString displayName = ''.obs;
|
||||||
final RxBool isAdmin = false.obs;
|
final RxBool isAdmin = false.obs;
|
||||||
final RxString networkError = ''.obs;
|
final RxString networkError = ''.obs;
|
||||||
bool get isLogin => userName.isNotEmpty;
|
bool get isLogin => userName.isNotEmpty;
|
||||||
|
String get displayNameOrUserName =>
|
||||||
|
displayName.value.trim().isEmpty ? userName.value : displayName.value;
|
||||||
|
String get accountLabelWithHandle {
|
||||||
|
final username = userName.value.trim();
|
||||||
|
if (username.isEmpty) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
final preferred = displayName.value.trim();
|
||||||
|
if (preferred.isEmpty || preferred == username) {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
return '$preferred (@$username)';
|
||||||
|
}
|
||||||
WeakReference<FFI> parent;
|
WeakReference<FFI> parent;
|
||||||
|
|
||||||
UserModel(this.parent) {
|
UserModel(this.parent) {
|
||||||
@@ -98,7 +112,8 @@ class UserModel {
|
|||||||
_updateLocalUserInfo() {
|
_updateLocalUserInfo() {
|
||||||
final userInfo = getLocalUserInfo();
|
final userInfo = getLocalUserInfo();
|
||||||
if (userInfo != null) {
|
if (userInfo != null) {
|
||||||
userName.value = userInfo['name'];
|
userName.value = (userInfo['name'] ?? '').toString();
|
||||||
|
displayName.value = (userInfo['display_name'] ?? '').toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,10 +125,12 @@ class UserModel {
|
|||||||
await gFFI.groupModel.reset();
|
await gFFI.groupModel.reset();
|
||||||
}
|
}
|
||||||
userName.value = '';
|
userName.value = '';
|
||||||
|
displayName.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
_parseAndUpdateUser(UserPayload user) {
|
_parseAndUpdateUser(UserPayload user) {
|
||||||
userName.value = user.name;
|
userName.value = user.name;
|
||||||
|
displayName.value = user.displayName;
|
||||||
isAdmin.value = user.isAdmin;
|
isAdmin.value = user.isAdmin;
|
||||||
bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user));
|
bind.mainSetLocalOption(key: 'user_info', value: jsonEncode(user));
|
||||||
if (isWeb) {
|
if (isWeb) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Project-level configuration.
|
# Project-level configuration.
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(runner LANGUAGES CXX)
|
project(runner LANGUAGES C CXX)
|
||||||
|
|
||||||
# The name of the executable created for the application. Change this to change
|
# The name of the executable created for the application. Change this to change
|
||||||
# the on-disk name of your application.
|
# the on-disk name of your application.
|
||||||
@@ -54,6 +54,55 @@ add_subdirectory(${FLUTTER_MANAGED_DIR})
|
|||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
|
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
|
||||||
|
|
||||||
|
# Wayland protocol for keyboard shortcuts inhibit
|
||||||
|
pkg_check_modules(WAYLAND_CLIENT IMPORTED_TARGET wayland-client)
|
||||||
|
pkg_check_modules(WAYLAND_PROTOCOLS_PKG QUIET wayland-protocols)
|
||||||
|
pkg_check_modules(WAYLAND_SCANNER_PKG QUIET wayland-scanner)
|
||||||
|
|
||||||
|
if(WAYLAND_PROTOCOLS_PKG_FOUND)
|
||||||
|
pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
|
||||||
|
endif()
|
||||||
|
if(WAYLAND_SCANNER_PKG_FOUND)
|
||||||
|
pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WAYLAND_CLIENT_FOUND AND WAYLAND_PROTOCOLS_DIR AND WAYLAND_SCANNER)
|
||||||
|
set(KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL
|
||||||
|
"${WAYLAND_PROTOCOLS_DIR}/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml")
|
||||||
|
|
||||||
|
if(EXISTS ${KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL})
|
||||||
|
set(WAYLAND_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/wayland-protocols")
|
||||||
|
file(MAKE_DIRECTORY ${WAYLAND_GENERATED_DIR})
|
||||||
|
|
||||||
|
# Generate client header
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h"
|
||||||
|
COMMAND ${WAYLAND_SCANNER} client-header
|
||||||
|
${KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL}
|
||||||
|
"${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h"
|
||||||
|
DEPENDS ${KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL}
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
# Generate protocol code
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-protocol.c"
|
||||||
|
COMMAND ${WAYLAND_SCANNER} private-code
|
||||||
|
${KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL}
|
||||||
|
"${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-protocol.c"
|
||||||
|
DEPENDS ${KEYBOARD_SHORTCUTS_INHIBIT_PROTOCOL}
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
set(WAYLAND_PROTOCOL_SOURCES
|
||||||
|
"${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h"
|
||||||
|
"${WAYLAND_GENERATED_DIR}/keyboard-shortcuts-inhibit-unstable-v1-protocol.c"
|
||||||
|
)
|
||||||
|
|
||||||
|
set(HAS_KEYBOARD_SHORTCUTS_INHIBIT TRUE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
|
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
|
||||||
|
|
||||||
# Define the application target. To change its name, change BINARY_NAME above,
|
# Define the application target. To change its name, change BINARY_NAME above,
|
||||||
@@ -63,9 +112,11 @@ add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
|
|||||||
add_executable(${BINARY_NAME}
|
add_executable(${BINARY_NAME}
|
||||||
"main.cc"
|
"main.cc"
|
||||||
"my_application.cc"
|
"my_application.cc"
|
||||||
|
"wayland_shortcuts_inhibit.cc"
|
||||||
"bump_mouse.cc"
|
"bump_mouse.cc"
|
||||||
"bump_mouse_x11.cc"
|
"bump_mouse_x11.cc"
|
||||||
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
|
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
|
||||||
|
${WAYLAND_PROTOCOL_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply the standard set of build settings. This can be removed for applications
|
# Apply the standard set of build settings. This can be removed for applications
|
||||||
@@ -78,6 +129,13 @@ target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
|
|||||||
target_link_libraries(${BINARY_NAME} PRIVATE ${CMAKE_DL_LIBS})
|
target_link_libraries(${BINARY_NAME} PRIVATE ${CMAKE_DL_LIBS})
|
||||||
# target_link_libraries(${BINARY_NAME} PRIVATE librustdesk)
|
# target_link_libraries(${BINARY_NAME} PRIVATE librustdesk)
|
||||||
|
|
||||||
|
# Wayland support for keyboard shortcuts inhibit
|
||||||
|
if(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
target_compile_definitions(${BINARY_NAME} PRIVATE HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
target_include_directories(${BINARY_NAME} PRIVATE ${WAYLAND_GENERATED_DIR})
|
||||||
|
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::WAYLAND_CLIENT)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Run the Flutter tool portions of the build. This must not be removed.
|
# Run the Flutter tool portions of the build. This must not be removed.
|
||||||
add_dependencies(${BINARY_NAME} flutter_assemble)
|
add_dependencies(${BINARY_NAME} flutter_assemble)
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
#include "wayland_shortcuts_inhibit.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <desktop_multi_window/desktop_multi_window_plugin.h>
|
||||||
|
|
||||||
#include "flutter/generated_plugin_registrant.h"
|
#include "flutter/generated_plugin_registrant.h"
|
||||||
|
|
||||||
@@ -91,6 +96,13 @@ static void my_application_activate(GApplication* application) {
|
|||||||
gtk_widget_show(GTK_WIDGET(window));
|
gtk_widget_show(GTK_WIDGET(window));
|
||||||
gtk_widget_show(GTK_WIDGET(view));
|
gtk_widget_show(GTK_WIDGET(view));
|
||||||
|
|
||||||
|
#if defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
// Register callback for sub-windows created by desktop_multi_window plugin
|
||||||
|
// Only sub-windows (remote windows) need keyboard shortcuts inhibition
|
||||||
|
desktop_multi_window_plugin_set_window_created_callback(
|
||||||
|
(WindowCreatedCallback)wayland_shortcuts_inhibit_init_for_subwindow);
|
||||||
|
#endif
|
||||||
|
|
||||||
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
|
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
|
||||||
|
|
||||||
g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new();
|
g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new();
|
||||||
|
|||||||
244
flutter/linux/wayland_shortcuts_inhibit.cc
Normal file
244
flutter/linux/wayland_shortcuts_inhibit.cc
Normal file
@@ -0,0 +1,244 @@
|
|||||||
|
// Wayland keyboard shortcuts inhibit implementation
|
||||||
|
// Uses the zwp_keyboard_shortcuts_inhibit_manager_v1 protocol to request
|
||||||
|
// the compositor to disable system shortcuts for specific windows.
|
||||||
|
|
||||||
|
#include "wayland_shortcuts_inhibit.h"
|
||||||
|
|
||||||
|
#if defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
#include <gdk/gdkwayland.h>
|
||||||
|
#include <wayland-client.h>
|
||||||
|
#include "keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h"
|
||||||
|
|
||||||
|
// Data structure to hold inhibitor state for each window
|
||||||
|
typedef struct {
|
||||||
|
struct zwp_keyboard_shortcuts_inhibit_manager_v1* manager;
|
||||||
|
struct zwp_keyboard_shortcuts_inhibitor_v1* inhibitor;
|
||||||
|
} ShortcutsInhibitData;
|
||||||
|
|
||||||
|
// Cleanup function for ShortcutsInhibitData
|
||||||
|
static void shortcuts_inhibit_data_free(gpointer data) {
|
||||||
|
ShortcutsInhibitData* inhibit_data = static_cast<ShortcutsInhibitData*>(data);
|
||||||
|
if (inhibit_data->inhibitor != NULL) {
|
||||||
|
zwp_keyboard_shortcuts_inhibitor_v1_destroy(inhibit_data->inhibitor);
|
||||||
|
}
|
||||||
|
if (inhibit_data->manager != NULL) {
|
||||||
|
zwp_keyboard_shortcuts_inhibit_manager_v1_destroy(inhibit_data->manager);
|
||||||
|
}
|
||||||
|
g_free(inhibit_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wayland registry handler to find the shortcuts inhibit manager
|
||||||
|
static void registry_handle_global(void* data, struct wl_registry* registry,
|
||||||
|
uint32_t name, const char* interface,
|
||||||
|
uint32_t /*version*/) {
|
||||||
|
ShortcutsInhibitData* inhibit_data = static_cast<ShortcutsInhibitData*>(data);
|
||||||
|
if (strcmp(interface,
|
||||||
|
zwp_keyboard_shortcuts_inhibit_manager_v1_interface.name) == 0) {
|
||||||
|
inhibit_data->manager =
|
||||||
|
static_cast<zwp_keyboard_shortcuts_inhibit_manager_v1*>(wl_registry_bind(
|
||||||
|
registry, name, &zwp_keyboard_shortcuts_inhibit_manager_v1_interface,
|
||||||
|
1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void registry_handle_global_remove(void* /*data*/, struct wl_registry* /*registry*/,
|
||||||
|
uint32_t /*name*/) {
|
||||||
|
// Not needed for this use case
|
||||||
|
}
|
||||||
|
|
||||||
|
static const struct wl_registry_listener registry_listener = {
|
||||||
|
registry_handle_global,
|
||||||
|
registry_handle_global_remove,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Inhibitor event handlers
|
||||||
|
static void inhibitor_active(void* /*data*/,
|
||||||
|
struct zwp_keyboard_shortcuts_inhibitor_v1* /*inhibitor*/) {
|
||||||
|
// Inhibitor is now active, shortcuts are being captured
|
||||||
|
}
|
||||||
|
|
||||||
|
static void inhibitor_inactive(void* /*data*/,
|
||||||
|
struct zwp_keyboard_shortcuts_inhibitor_v1* /*inhibitor*/) {
|
||||||
|
// Inhibitor is now inactive, shortcuts restored to compositor
|
||||||
|
}
|
||||||
|
|
||||||
|
static const struct zwp_keyboard_shortcuts_inhibitor_v1_listener inhibitor_listener = {
|
||||||
|
inhibitor_active,
|
||||||
|
inhibitor_inactive,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Forward declaration
|
||||||
|
static void uninhibit_keyboard_shortcuts(GtkWindow* window);
|
||||||
|
|
||||||
|
// Inhibit keyboard shortcuts on Wayland for a specific window
|
||||||
|
static void inhibit_keyboard_shortcuts(GtkWindow* window) {
|
||||||
|
GdkDisplay* display = gtk_widget_get_display(GTK_WIDGET(window));
|
||||||
|
if (!GDK_IS_WAYLAND_DISPLAY(display)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if already inhibited for this window
|
||||||
|
if (g_object_get_data(G_OBJECT(window), "shortcuts-inhibit-data") != NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ShortcutsInhibitData* inhibit_data = g_new0(ShortcutsInhibitData, 1);
|
||||||
|
|
||||||
|
struct wl_display* wl_display = gdk_wayland_display_get_wl_display(display);
|
||||||
|
if (wl_display == NULL) {
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct wl_registry* registry = wl_display_get_registry(wl_display);
|
||||||
|
if (registry == NULL) {
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wl_registry_add_listener(registry, ®istry_listener, inhibit_data);
|
||||||
|
wl_display_roundtrip(wl_display);
|
||||||
|
|
||||||
|
if (inhibit_data->manager == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
GdkWindow* gdk_window = gtk_widget_get_window(GTK_WIDGET(window));
|
||||||
|
if (gdk_window == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct wl_surface* surface = gdk_wayland_window_get_wl_surface(gdk_window);
|
||||||
|
if (surface == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
GdkSeat* gdk_seat = gdk_display_get_default_seat(display);
|
||||||
|
if (gdk_seat == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct wl_seat* seat = gdk_wayland_seat_get_wl_seat(gdk_seat);
|
||||||
|
if (seat == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
inhibit_data->inhibitor =
|
||||||
|
zwp_keyboard_shortcuts_inhibit_manager_v1_inhibit_shortcuts(
|
||||||
|
inhibit_data->manager, surface, seat);
|
||||||
|
|
||||||
|
if (inhibit_data->inhibitor == NULL) {
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
shortcuts_inhibit_data_free(inhibit_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add listener to monitor active/inactive state
|
||||||
|
zwp_keyboard_shortcuts_inhibitor_v1_add_listener(
|
||||||
|
inhibit_data->inhibitor, &inhibitor_listener, window);
|
||||||
|
|
||||||
|
wl_display_roundtrip(wl_display);
|
||||||
|
wl_registry_destroy(registry);
|
||||||
|
|
||||||
|
// Associate the inhibit data with the window for cleanup on destroy
|
||||||
|
g_object_set_data_full(G_OBJECT(window), "shortcuts-inhibit-data",
|
||||||
|
inhibit_data, shortcuts_inhibit_data_free);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove keyboard shortcuts inhibitor from a window
|
||||||
|
static void uninhibit_keyboard_shortcuts(GtkWindow* window) {
|
||||||
|
ShortcutsInhibitData* inhibit_data = static_cast<ShortcutsInhibitData*>(
|
||||||
|
g_object_get_data(G_OBJECT(window), "shortcuts-inhibit-data"));
|
||||||
|
|
||||||
|
if (inhibit_data == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This will trigger shortcuts_inhibit_data_free via g_object_set_data
|
||||||
|
g_object_set_data(G_OBJECT(window), "shortcuts-inhibit-data", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Focus event handlers for dynamic inhibitor management
|
||||||
|
static gboolean on_window_focus_in(GtkWidget* widget, GdkEventFocus* /*event*/, gpointer /*user_data*/) {
|
||||||
|
if (GTK_IS_WINDOW(widget)) {
|
||||||
|
inhibit_keyboard_shortcuts(GTK_WINDOW(widget));
|
||||||
|
}
|
||||||
|
return FALSE; // Continue event propagation
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean on_window_focus_out(GtkWidget* widget, GdkEventFocus* /*event*/, gpointer /*user_data*/) {
|
||||||
|
if (GTK_IS_WINDOW(widget)) {
|
||||||
|
uninhibit_keyboard_shortcuts(GTK_WINDOW(widget));
|
||||||
|
}
|
||||||
|
return FALSE; // Continue event propagation
|
||||||
|
}
|
||||||
|
|
||||||
|
// Key for marking window as having focus handlers connected
|
||||||
|
static const char* const kFocusHandlersConnectedKey = "shortcuts-inhibit-focus-handlers-connected";
|
||||||
|
// Key for marking window as having a pending realize handler
|
||||||
|
static const char* const kRealizeHandlerConnectedKey = "shortcuts-inhibit-realize-handler-connected";
|
||||||
|
|
||||||
|
// Callback when window is realized (mapped to screen)
|
||||||
|
// Sets up focus-based inhibitor management
|
||||||
|
static void on_window_realize(GtkWidget* widget, gpointer /*user_data*/) {
|
||||||
|
if (GTK_IS_WINDOW(widget)) {
|
||||||
|
// Check if focus handlers are already connected to avoid duplicates
|
||||||
|
if (g_object_get_data(G_OBJECT(widget), kFocusHandlersConnectedKey) != NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect focus events for dynamic inhibitor management
|
||||||
|
g_signal_connect(widget, "focus-in-event",
|
||||||
|
G_CALLBACK(on_window_focus_in), NULL);
|
||||||
|
g_signal_connect(widget, "focus-out-event",
|
||||||
|
G_CALLBACK(on_window_focus_out), NULL);
|
||||||
|
|
||||||
|
// Mark as connected to prevent duplicate connections
|
||||||
|
g_object_set_data(G_OBJECT(widget), kFocusHandlersConnectedKey, GINT_TO_POINTER(1));
|
||||||
|
|
||||||
|
// If window already has focus, create inhibitor now
|
||||||
|
if (gtk_window_has_toplevel_focus(GTK_WINDOW(widget))) {
|
||||||
|
inhibit_keyboard_shortcuts(GTK_WINDOW(widget));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Public API: Initialize shortcuts inhibit for a sub-window
|
||||||
|
void wayland_shortcuts_inhibit_init_for_subwindow(void* view) {
|
||||||
|
GtkWidget* widget = GTK_WIDGET(view);
|
||||||
|
GtkWidget* toplevel = gtk_widget_get_toplevel(widget);
|
||||||
|
|
||||||
|
if (toplevel != NULL && GTK_IS_WINDOW(toplevel)) {
|
||||||
|
// Check if already initialized to avoid duplicate realize handlers
|
||||||
|
if (g_object_get_data(G_OBJECT(toplevel), kFocusHandlersConnectedKey) != NULL ||
|
||||||
|
g_object_get_data(G_OBJECT(toplevel), kRealizeHandlerConnectedKey) != NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gtk_widget_get_realized(toplevel)) {
|
||||||
|
// Window is already realized, set up focus handlers now
|
||||||
|
on_window_realize(toplevel, NULL);
|
||||||
|
} else {
|
||||||
|
// Mark realize handler as connected to prevent duplicate connections
|
||||||
|
// if called again before window is realized
|
||||||
|
g_object_set_data(G_OBJECT(toplevel), kRealizeHandlerConnectedKey, GINT_TO_POINTER(1));
|
||||||
|
// Wait for window to be realized
|
||||||
|
g_signal_connect(toplevel, "realize",
|
||||||
|
G_CALLBACK(on_window_realize), NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
22
flutter/linux/wayland_shortcuts_inhibit.h
Normal file
22
flutter/linux/wayland_shortcuts_inhibit.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Wayland keyboard shortcuts inhibit support
|
||||||
|
// This module provides functionality to inhibit system keyboard shortcuts
|
||||||
|
// on Wayland compositors, allowing remote desktop windows to capture all
|
||||||
|
// key events including Super, Alt+Tab, etc.
|
||||||
|
|
||||||
|
#ifndef WAYLAND_SHORTCUTS_INHIBIT_H_
|
||||||
|
#define WAYLAND_SHORTCUTS_INHIBIT_H_
|
||||||
|
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#if defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
|
||||||
|
// Initialize shortcuts inhibit for a sub-window created by desktop_multi_window plugin.
|
||||||
|
// This sets up focus-based inhibitor management: inhibitor is created when
|
||||||
|
// the window gains focus and destroyed when it loses focus.
|
||||||
|
//
|
||||||
|
// @param view The FlView of the sub-window
|
||||||
|
void wayland_shortcuts_inhibit_init_for_subwindow(void* view);
|
||||||
|
|
||||||
|
#endif // defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
||||||
|
|
||||||
|
#endif // WAYLAND_SHORTCUTS_INHIBIT_H_
|
||||||
@@ -10,7 +10,7 @@ TODO: Move this lib to a separate project.
|
|||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
Terminalogies:
|
Terminologies:
|
||||||
|
|
||||||
- cliprdr: this module
|
- cliprdr: this module
|
||||||
- local: the endpoint which initiates a file copy events
|
- local: the endpoint which initiates a file copy events
|
||||||
@@ -50,7 +50,7 @@ sequenceDiagram
|
|||||||
r ->> l: Format List Response (notified)
|
r ->> l: Format List Response (notified)
|
||||||
r ->> l: Format Data Request (requests file list)
|
r ->> l: Format Data Request (requests file list)
|
||||||
activate l
|
activate l
|
||||||
note left of l: Retrive file list from system clipboard
|
note left of l: Retrieve file list from system clipboard
|
||||||
l ->> r: Format Data Response (containing file list)
|
l ->> r: Format Data Response (containing file list)
|
||||||
deactivate l
|
deactivate l
|
||||||
note over r: Update system clipboard with received file list
|
note over r: Update system clipboard with received file list
|
||||||
@@ -84,10 +84,10 @@ and copy files to remote.
|
|||||||
The protocol was originally designed as an extension of the Windows RDP,
|
The protocol was originally designed as an extension of the Windows RDP,
|
||||||
so the specific message packages fits windows well.
|
so the specific message packages fits windows well.
|
||||||
|
|
||||||
When starting cliprdr, a thread is spawn to create a invisible window
|
When starting cliprdr, a thread is spawned to create an invisible window
|
||||||
and to subscribe to OLE clipboard events.
|
and to subscribe to OLE clipboard events.
|
||||||
The window's callback (see `cliprdr_proc` in `src/windows/wf_cliprdr.c`) was
|
The window's callback (see `cliprdr_proc` in `src/windows/wf_cliprdr.c`) was
|
||||||
set to handle a variaty of events.
|
set to handle a variety of events.
|
||||||
|
|
||||||
Detailed implementation is shown in pictures above.
|
Detailed implementation is shown in pictures above.
|
||||||
|
|
||||||
@@ -108,18 +108,18 @@ after filtering out those pointing to our FUSE directory or duplicated,
|
|||||||
send format list directly to remote.
|
send format list directly to remote.
|
||||||
|
|
||||||
The cliprdr server also uses clipboard client for setting clipboard,
|
The cliprdr server also uses clipboard client for setting clipboard,
|
||||||
or retrive paths from system.
|
or retrieve paths from system.
|
||||||
|
|
||||||
#### Local File List
|
#### Local File List
|
||||||
|
|
||||||
The local file list is a temperary list of file metadata.
|
The local file list is a temporary list of file metadata.
|
||||||
When receiving file contents PDU from peer, the server picks
|
When receiving file contents PDU from peer, the server picks
|
||||||
out the file requested and open it for reading if necessary.
|
out the file requested and open it for reading if necessary.
|
||||||
|
|
||||||
Also when receiving Format Data Request PDU from remote asking for file list,
|
Also when receiving Format Data Request PDU from remote asking for file list,
|
||||||
the local file list should be rebuilt from file list retrieved from Clipboard Client.
|
the local file list should be rebuilt from file list retrieved from Clipboard Client.
|
||||||
|
|
||||||
Some caching and preloading could done on it since applications are likely to read
|
Some caching and preloading could be done on it since applications are likely to read
|
||||||
on the list sequentially.
|
on the list sequentially.
|
||||||
|
|
||||||
#### FUSE server
|
#### FUSE server
|
||||||
|
|||||||
@@ -261,6 +261,8 @@ impl KeyboardControllable for Enigo {
|
|||||||
} else {
|
} else {
|
||||||
if let Some(keyboard) = &mut self.custom_keyboard {
|
if let Some(keyboard) = &mut self.custom_keyboard {
|
||||||
keyboard.key_sequence(sequence)
|
keyboard.key_sequence(sequence)
|
||||||
|
} else {
|
||||||
|
log::warn!("Enigo::key_sequence: no custom_keyboard set for Wayland!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -277,6 +279,7 @@ impl KeyboardControllable for Enigo {
|
|||||||
if let Some(keyboard) = &mut self.custom_keyboard {
|
if let Some(keyboard) = &mut self.custom_keyboard {
|
||||||
keyboard.key_down(key)
|
keyboard.key_down(key)
|
||||||
} else {
|
} else {
|
||||||
|
log::warn!("Enigo::key_down: no custom_keyboard set for Wayland!");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -290,13 +293,24 @@ impl KeyboardControllable for Enigo {
|
|||||||
} else {
|
} else {
|
||||||
if let Some(keyboard) = &mut self.custom_keyboard {
|
if let Some(keyboard) = &mut self.custom_keyboard {
|
||||||
keyboard.key_up(key)
|
keyboard.key_up(key)
|
||||||
|
} else {
|
||||||
|
log::warn!("Enigo::key_up: no custom_keyboard set for Wayland!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fn key_click(&mut self, key: Key) {
|
fn key_click(&mut self, key: Key) {
|
||||||
if self.tfc_key_click(key).is_err() {
|
if self.is_x11 {
|
||||||
self.key_down(key).ok();
|
// X11: try tfc first, then fallback to key_down/key_up
|
||||||
self.key_up(key);
|
if self.tfc_key_click(key).is_err() {
|
||||||
|
self.key_down(key).ok();
|
||||||
|
self.key_up(key);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if let Some(keyboard) = &mut self.custom_keyboard {
|
||||||
|
keyboard.key_click(key);
|
||||||
|
} else {
|
||||||
|
log::warn!("Enigo::key_click: no custom_keyboard set for Wayland!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule libs/hbb_common updated: 900077a2c2...0b60b9ffa0
@@ -98,7 +98,7 @@ unsafe fn check_x11_shm_available(c: *mut xcb_connection_t) -> Result<(), Error>
|
|||||||
let mut e: *mut xcb_generic_error_t = std::ptr::null_mut();
|
let mut e: *mut xcb_generic_error_t = std::ptr::null_mut();
|
||||||
let reply = xcb_shm_query_version_reply(c, cookie, &mut e as _);
|
let reply = xcb_shm_query_version_reply(c, cookie, &mut e as _);
|
||||||
if reply.is_null() {
|
if reply.is_null() {
|
||||||
// TODO: Should seperate SHM disabled from SHM not supported?
|
// TODO: Should separate SHM disabled from SHM not supported?
|
||||||
return Err(Error::UnsupportedExtension);
|
return Err(Error::UnsupportedExtension);
|
||||||
} else {
|
} else {
|
||||||
// https://github.com/FFmpeg/FFmpeg/blob/6229e4ac425b4566446edefb67d5c225eb397b58/libavdevice/xcbgrab.c#L229
|
// https://github.com/FFmpeg/FFmpeg/blob/6229e4ac425b4566446edefb67d5c225eb397b58/libavdevice/xcbgrab.c#L229
|
||||||
|
|||||||
@@ -336,7 +336,9 @@ def gen_custom_ARPSYSTEMCOMPONENT_True(args, dist_dir):
|
|||||||
f'{indent}<RegistryValue Type="integer" Name="Language" Value="[ProductLanguage]" />\n'
|
f'{indent}<RegistryValue Type="integer" Name="Language" Value="[ProductLanguage]" />\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
estimated_size = get_folder_size(dist_dir)
|
# EstimatedSize in uninstall registry must be in KB.
|
||||||
|
estimated_size_bytes = get_folder_size(dist_dir)
|
||||||
|
estimated_size = max(1, (estimated_size_bytes + 1023) // 1024)
|
||||||
lines_new.append(
|
lines_new.append(
|
||||||
f'{indent}<RegistryValue Type="integer" Name="EstimatedSize" Value="{estimated_size}" />\n'
|
f'{indent}<RegistryValue Type="integer" Name="EstimatedSize" Value="{estimated_size}" />\n'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2630,10 +2630,13 @@ impl LoginConfigHandler {
|
|||||||
display_name =
|
display_name =
|
||||||
serde_json::from_str::<serde_json::Value>(&LocalConfig::get_option("user_info"))
|
serde_json::from_str::<serde_json::Value>(&LocalConfig::get_option("user_info"))
|
||||||
.map(|x| {
|
.map(|x| {
|
||||||
x.get("name")
|
x.get("display_name")
|
||||||
.map(|x| x.as_str().unwrap_or_default())
|
.and_then(|x| x.as_str())
|
||||||
|
.map(|x| x.trim())
|
||||||
|
.filter(|x| !x.is_empty())
|
||||||
|
.or_else(|| x.get("name").and_then(|x| x.as_str()))
|
||||||
|
.map(|x| x.to_owned())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_owned()
|
|
||||||
})
|
})
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ pub fn check_clipboard_cm() -> ResultType<MultiClipboards> {
|
|||||||
|
|
||||||
#[cfg(not(target_os = "android"))]
|
#[cfg(not(target_os = "android"))]
|
||||||
fn update_clipboard_(multi_clipboards: Vec<Clipboard>, side: ClipboardSide) {
|
fn update_clipboard_(multi_clipboards: Vec<Clipboard>, side: ClipboardSide) {
|
||||||
let to_update_data = proto::from_multi_clipbards(multi_clipboards);
|
let to_update_data = proto::from_multi_clipboards(multi_clipboards);
|
||||||
if to_update_data.is_empty() {
|
if to_update_data.is_empty() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -432,7 +432,7 @@ impl ClipboardContext {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
let is_kde_x11 = false;
|
let is_kde_x11 = false;
|
||||||
let clear_holder_text = if is_kde_x11 {
|
let clear_holder_text = if is_kde_x11 {
|
||||||
"RustDesk placeholder to clear the file clipbard"
|
"RustDesk placeholder to clear the file clipboard"
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
@@ -672,7 +672,7 @@ mod proto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "android"))]
|
#[cfg(not(target_os = "android"))]
|
||||||
pub fn from_multi_clipbards(multi_clipboards: Vec<Clipboard>) -> Vec<ClipboardData> {
|
pub fn from_multi_clipboards(multi_clipboards: Vec<Clipboard>) -> Vec<ClipboardData> {
|
||||||
multi_clipboards
|
multi_clipboards
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(from_clipboard)
|
.filter_map(from_clipboard)
|
||||||
@@ -814,7 +814,7 @@ pub mod clipboard_listener {
|
|||||||
subscribers: listener_lock.subscribers.clone(),
|
subscribers: listener_lock.subscribers.clone(),
|
||||||
};
|
};
|
||||||
let (tx_start_res, rx_start_res) = channel();
|
let (tx_start_res, rx_start_res) = channel();
|
||||||
let h = start_clipbard_master_thread(handler, tx_start_res);
|
let h = start_clipboard_master_thread(handler, tx_start_res);
|
||||||
let shutdown = match rx_start_res.recv() {
|
let shutdown = match rx_start_res.recv() {
|
||||||
Ok((Some(s), _)) => s,
|
Ok((Some(s), _)) => s,
|
||||||
Ok((None, err)) => {
|
Ok((None, err)) => {
|
||||||
@@ -854,7 +854,7 @@ pub mod clipboard_listener {
|
|||||||
log::info!("Clipboard listener unsubscribed: {}", name);
|
log::info!("Clipboard listener unsubscribed: {}", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn start_clipbard_master_thread(
|
fn start_clipboard_master_thread(
|
||||||
handler: impl ClipboardHandler + Send + 'static,
|
handler: impl ClipboardHandler + Send + 'static,
|
||||||
tx_start_res: Sender<(Option<Shutdown>, String)>,
|
tx_start_res: Sender<(Option<Shutdown>, String)>,
|
||||||
) -> JoinHandle<()> {
|
) -> JoinHandle<()> {
|
||||||
|
|||||||
@@ -1072,10 +1072,6 @@ fn get_api_server_(api: String, custom: String) -> String {
|
|||||||
if !api.is_empty() {
|
if !api.is_empty() {
|
||||||
return api.to_owned();
|
return api.to_owned();
|
||||||
}
|
}
|
||||||
let api = option_env!("API_SERVER").unwrap_or_default();
|
|
||||||
if !api.is_empty() {
|
|
||||||
return api.into();
|
|
||||||
}
|
|
||||||
let s0 = get_custom_rendezvous_server(custom);
|
let s0 = get_custom_rendezvous_server(custom);
|
||||||
if !s0.is_empty() {
|
if !s0.is_empty() {
|
||||||
let s = crate::increase_port(&s0, -2);
|
let s = crate::increase_port(&s0, -2);
|
||||||
@@ -1737,8 +1733,7 @@ pub fn create_symmetric_key_msg(their_pk_b: [u8; 32]) -> (Bytes, Bytes, secretbo
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn using_public_server() -> bool {
|
pub fn using_public_server() -> bool {
|
||||||
option_env!("RENDEZVOUS_SERVER").unwrap_or("").is_empty()
|
crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty()
|
||||||
&& crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ThrottledInterval {
|
pub struct ThrottledInterval {
|
||||||
|
|||||||
@@ -2759,6 +2759,11 @@ pub fn main_get_common(key: String) -> String {
|
|||||||
None => "",
|
None => "",
|
||||||
}
|
}
|
||||||
.to_string();
|
.to_string();
|
||||||
|
} else if key == "has-gnome-shortcuts-inhibitor-permission" {
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
return crate::platform::linux::has_gnome_shortcuts_inhibitor_permission().to_string();
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
return false.to_string();
|
||||||
} else {
|
} else {
|
||||||
if key.starts_with("download-data-") {
|
if key.starts_with("download-data-") {
|
||||||
let id = key.replace("download-data-", "");
|
let id = key.replace("download-data-", "");
|
||||||
@@ -2920,6 +2925,29 @@ pub fn main_set_common(_key: String, _value: String) {
|
|||||||
} else if _key == "cancel-downloader" {
|
} else if _key == "cancel-downloader" {
|
||||||
crate::hbbs_http::downloader::cancel(&_value);
|
crate::hbbs_http::downloader::cancel(&_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
if _key == "clear-gnome-shortcuts-inhibitor-permission" {
|
||||||
|
std::thread::spawn(move || {
|
||||||
|
let (success, msg) =
|
||||||
|
match crate::platform::linux::clear_gnome_shortcuts_inhibitor_permission() {
|
||||||
|
Ok(_) => (true, "".to_owned()),
|
||||||
|
Err(e) => (false, e.to_string()),
|
||||||
|
};
|
||||||
|
let data = HashMap::from([
|
||||||
|
(
|
||||||
|
"name",
|
||||||
|
serde_json::json!("clear-gnome-shortcuts-inhibitor-permission-res"),
|
||||||
|
),
|
||||||
|
("success", serde_json::json!(success)),
|
||||||
|
("msg", serde_json::json!(msg)),
|
||||||
|
]);
|
||||||
|
let _res = flutter::push_global_event(
|
||||||
|
flutter::APP_TYPE_MAIN,
|
||||||
|
serde_json::ser::to_string(&data).unwrap_or("".to_owned()),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn session_get_common_sync(
|
pub fn session_get_common_sync(
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ pub enum UserStatus {
|
|||||||
pub struct UserPayload {
|
pub struct UserPayload {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
pub display_name: Option<String>,
|
||||||
|
#[serde(default)]
|
||||||
pub email: Option<String>,
|
pub email: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub note: Option<String>,
|
pub note: Option<String>,
|
||||||
@@ -268,7 +270,12 @@ impl OidcSession {
|
|||||||
);
|
);
|
||||||
LocalConfig::set_option(
|
LocalConfig::set_option(
|
||||||
"user_info".to_owned(),
|
"user_info".to_owned(),
|
||||||
serde_json::json!({ "name": auth_body.user.name, "status": auth_body.user.status }).to_string(),
|
serde_json::json!({
|
||||||
|
"name": auth_body.user.name,
|
||||||
|
"display_name": auth_body.user.display_name,
|
||||||
|
"status": auth_body.user.status
|
||||||
|
})
|
||||||
|
.to_string(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "عرض RustDesk"),
|
("Show RustDesk", "عرض RustDesk"),
|
||||||
("This PC", "هذا الحاسب"),
|
("This PC", "هذا الحاسب"),
|
||||||
("or", "او"),
|
("or", "او"),
|
||||||
("Continue with", "متابعة مع"),
|
|
||||||
("Elevate", "ارتقاء"),
|
("Elevate", "ارتقاء"),
|
||||||
("Zoom cursor", "تكبير المؤشر"),
|
("Zoom cursor", "تكبير المؤشر"),
|
||||||
("Accept sessions via password", "قبول الجلسات عبر كلمة المرور"),
|
("Accept sessions via password", "قبول الجلسات عبر كلمة المرور"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "متابعة مع {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Паказаць RustDesk"),
|
("Show RustDesk", "Паказаць RustDesk"),
|
||||||
("This PC", "Гэты кампутар"),
|
("This PC", "Гэты кампутар"),
|
||||||
("or", "або"),
|
("or", "або"),
|
||||||
("Continue with", "Працягнуць з"),
|
|
||||||
("Elevate", "Павысіць"),
|
("Elevate", "Павысіць"),
|
||||||
("Zoom cursor", "Павялічэнне курсора"),
|
("Zoom cursor", "Павялічэнне курсора"),
|
||||||
("Accept sessions via password", "Прымаць сеансы па паролю"),
|
("Accept sessions via password", "Прымаць сеансы па паролю"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Працягнуць з {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Покажи RustDesk"),
|
("Show RustDesk", "Покажи RustDesk"),
|
||||||
("This PC", "Този компютър"),
|
("This PC", "Този компютър"),
|
||||||
("or", "или"),
|
("or", "или"),
|
||||||
("Continue with", "Продължи с"),
|
|
||||||
("Elevate", "Повишаване"),
|
("Elevate", "Повишаване"),
|
||||||
("Zoom cursor", "Уголемяване курсор"),
|
("Zoom cursor", "Уголемяване курсор"),
|
||||||
("Accept sessions via password", "Приемане сесии чрез парола"),
|
("Accept sessions via password", "Приемане сесии чрез парола"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Продължи с {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Mostra el RustDesk"),
|
("Show RustDesk", "Mostra el RustDesk"),
|
||||||
("This PC", "Aquest equip"),
|
("This PC", "Aquest equip"),
|
||||||
("or", "o"),
|
("or", "o"),
|
||||||
("Continue with", "Continua amb"),
|
|
||||||
("Elevate", "Permisos ampliats"),
|
("Elevate", "Permisos ampliats"),
|
||||||
("Zoom cursor", "Escala del ratolí"),
|
("Zoom cursor", "Escala del ratolí"),
|
||||||
("Accept sessions via password", "Accepta les sessions mitjançant una contrasenya"),
|
("Accept sessions via password", "Accepta les sessions mitjançant una contrasenya"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Continua amb {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "显示 RustDesk"),
|
("Show RustDesk", "显示 RustDesk"),
|
||||||
("This PC", "此电脑"),
|
("This PC", "此电脑"),
|
||||||
("or", "或"),
|
("or", "或"),
|
||||||
("Continue with", "使用"),
|
|
||||||
("Elevate", "提权"),
|
("Elevate", "提权"),
|
||||||
("Zoom cursor", "缩放光标"),
|
("Zoom cursor", "缩放光标"),
|
||||||
("Accept sessions via password", "只允许密码访问"),
|
("Accept sessions via password", "只允许密码访问"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "更新日志"),
|
("Changelog", "更新日志"),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "使用 {} 登录"),
|
||||||
|
("Display Name", "显示名称"),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Zobrazit RustDesk"),
|
("Show RustDesk", "Zobrazit RustDesk"),
|
||||||
("This PC", "Tento počítač"),
|
("This PC", "Tento počítač"),
|
||||||
("or", "nebo"),
|
("or", "nebo"),
|
||||||
("Continue with", "Pokračovat s"),
|
|
||||||
("Elevate", "Zvýšit"),
|
("Elevate", "Zvýšit"),
|
||||||
("Zoom cursor", "Kurzor přiblížení"),
|
("Zoom cursor", "Kurzor přiblížení"),
|
||||||
("Accept sessions via password", "Přijímat relace pomocí hesla"),
|
("Accept sessions via password", "Přijímat relace pomocí hesla"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Pokračovat s {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Vis RustDesk"),
|
("Show RustDesk", "Vis RustDesk"),
|
||||||
("This PC", "Denne PC"),
|
("This PC", "Denne PC"),
|
||||||
("or", "eller"),
|
("or", "eller"),
|
||||||
("Continue with", "Fortsæt med"),
|
|
||||||
("Elevate", "Elevér"),
|
("Elevate", "Elevér"),
|
||||||
("Zoom cursor", "Zoom markør"),
|
("Zoom cursor", "Zoom markør"),
|
||||||
("Accept sessions via password", "Acceptér sessioner via adgangskode"),
|
("Accept sessions via password", "Acceptér sessioner via adgangskode"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Fortsæt med {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk anzeigen"),
|
("Show RustDesk", "RustDesk anzeigen"),
|
||||||
("This PC", "Dieser PC"),
|
("This PC", "Dieser PC"),
|
||||||
("or", "oder"),
|
("or", "oder"),
|
||||||
("Continue with", "Fortfahren mit"),
|
|
||||||
("Elevate", "Zugriff gewähren"),
|
("Elevate", "Zugriff gewähren"),
|
||||||
("Zoom cursor", "Cursor vergrößern"),
|
("Zoom cursor", "Cursor vergrößern"),
|
||||||
("Accept sessions via password", "Sitzung mit Passwort bestätigen"),
|
("Accept sessions via password", "Sitzung mit Passwort bestätigen"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Änderungsprotokoll"),
|
("Changelog", "Änderungsprotokoll"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Bildschirm während ausgehender Sitzungen aktiv halten"),
|
("keep-awake-during-outgoing-sessions-label", "Bildschirm während ausgehender Sitzungen aktiv halten"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Bildschirm während eingehender Sitzungen aktiv halten"),
|
("keep-awake-during-incoming-sessions-label", "Bildschirm während eingehender Sitzungen aktiv halten"),
|
||||||
|
("Continue with {}", "Fortfahren mit {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Εμφάνιση RustDesk"),
|
("Show RustDesk", "Εμφάνιση RustDesk"),
|
||||||
("This PC", "Αυτός ο υπολογιστής"),
|
("This PC", "Αυτός ο υπολογιστής"),
|
||||||
("or", "ή"),
|
("or", "ή"),
|
||||||
("Continue with", "Συνέχεια με"),
|
|
||||||
("Elevate", "Ανύψωση"),
|
("Elevate", "Ανύψωση"),
|
||||||
("Zoom cursor", "Kέρσορας μεγέθυνσης"),
|
("Zoom cursor", "Kέρσορας μεγέθυνσης"),
|
||||||
("Accept sessions via password", "Αποδοχή συνεδριών με κωδικό πρόσβασης"),
|
("Accept sessions via password", "Αποδοχή συνεδριών με κωδικό πρόσβασης"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Συνέχεια με {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("default_proxy_tip", "Default protocol and port are Socks5 and 1080"),
|
("default_proxy_tip", "Default protocol and port are Socks5 and 1080"),
|
||||||
("no_audio_input_device_tip", "No audio input device found."),
|
("no_audio_input_device_tip", "No audio input device found."),
|
||||||
("clear_Wayland_screen_selection_tip", "After clearing the screen selection, you can reselect the screen to share."),
|
("clear_Wayland_screen_selection_tip", "After clearing the screen selection, you can reselect the screen to share."),
|
||||||
("confirm_clear_Wayland_screen_selection_tip", "Are you sure to clear the Wayland screen selection?"),
|
("confirm_clear_Wayland_screen_selection_tip", "Are you sure you want to clear the Wayland screen selection?"),
|
||||||
("android_new_voice_call_tip", "A new voice call request was received. If you accept, the audio will switch to voice communication."),
|
("android_new_voice_call_tip", "A new voice call request was received. If you accept, the audio will switch to voice communication."),
|
||||||
("texture_render_tip", "Use texture rendering to make the pictures smoother. You could try disabling this option if you encounter rendering issues."),
|
("texture_render_tip", "Use texture rendering to make the pictures smoother. You could try disabling this option if you encounter rendering issues."),
|
||||||
("floating_window_tip", "It helps to keep RustDesk background service"),
|
("floating_window_tip", "It helps to keep RustDesk background service"),
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", ""),
|
("Show RustDesk", ""),
|
||||||
("This PC", ""),
|
("This PC", ""),
|
||||||
("or", ""),
|
("or", ""),
|
||||||
("Continue with", ""),
|
|
||||||
("Elevate", ""),
|
("Elevate", ""),
|
||||||
("Zoom cursor", ""),
|
("Zoom cursor", ""),
|
||||||
("Accept sessions via password", ""),
|
("Accept sessions via password", ""),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", ""),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Mostrar RustDesk"),
|
("Show RustDesk", "Mostrar RustDesk"),
|
||||||
("This PC", "Este PC"),
|
("This PC", "Este PC"),
|
||||||
("or", "o"),
|
("or", "o"),
|
||||||
("Continue with", "Continuar con"),
|
|
||||||
("Elevate", "Elevar privilegios"),
|
("Elevate", "Elevar privilegios"),
|
||||||
("Zoom cursor", "Ampliar cursor"),
|
("Zoom cursor", "Ampliar cursor"),
|
||||||
("Accept sessions via password", "Aceptar sesiones a través de contraseña"),
|
("Accept sessions via password", "Aceptar sesiones a través de contraseña"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Continuar con {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Kuva RustDesk"),
|
("Show RustDesk", "Kuva RustDesk"),
|
||||||
("This PC", "See arvuti"),
|
("This PC", "See arvuti"),
|
||||||
("or", "või"),
|
("or", "või"),
|
||||||
("Continue with", "Jätka koos"),
|
|
||||||
("Elevate", "Tõsta"),
|
("Elevate", "Tõsta"),
|
||||||
("Zoom cursor", "Suumi kursorit"),
|
("Zoom cursor", "Suumi kursorit"),
|
||||||
("Accept sessions via password", "Aktsepteeri seansid parooli kaudu"),
|
("Accept sessions via password", "Aktsepteeri seansid parooli kaudu"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Jätka koos {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Erakutsi RustDesk"),
|
("Show RustDesk", "Erakutsi RustDesk"),
|
||||||
("This PC", "PC hau"),
|
("This PC", "PC hau"),
|
||||||
("or", "edo"),
|
("or", "edo"),
|
||||||
("Continue with", "Jarraitu honekin"),
|
|
||||||
("Elevate", "Igo maila"),
|
("Elevate", "Igo maila"),
|
||||||
("Zoom cursor", "Handitu kurtsorea"),
|
("Zoom cursor", "Handitu kurtsorea"),
|
||||||
("Accept sessions via password", "Onartu saioak pasahitzaren bidez"),
|
("Accept sessions via password", "Onartu saioak pasahitzaren bidez"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "{} honekin jarraitu"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk نمایش"),
|
("Show RustDesk", "RustDesk نمایش"),
|
||||||
("This PC", "This PC"),
|
("This PC", "This PC"),
|
||||||
("or", "یا"),
|
("or", "یا"),
|
||||||
("Continue with", "ادامه با"),
|
|
||||||
("Elevate", "ارتقاء"),
|
("Elevate", "ارتقاء"),
|
||||||
("Zoom cursor", " بزرگنمایی نشانگر ماوس"),
|
("Zoom cursor", " بزرگنمایی نشانگر ماوس"),
|
||||||
("Accept sessions via password", "قبول درخواست با رمز عبور"),
|
("Accept sessions via password", "قبول درخواست با رمز عبور"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "ادامه با {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Näytä RustDesk"),
|
("Show RustDesk", "Näytä RustDesk"),
|
||||||
("This PC", "Tämä tietokone"),
|
("This PC", "Tämä tietokone"),
|
||||||
("or", "tai"),
|
("or", "tai"),
|
||||||
("Continue with", "Jatka käyttäen"),
|
|
||||||
("Elevate", "Korota oikeudet"),
|
("Elevate", "Korota oikeudet"),
|
||||||
("Zoom cursor", "Suurennusosoitin"),
|
("Zoom cursor", "Suurennusosoitin"),
|
||||||
("Accept sessions via password", "Hyväksy istunnot salasanalla"),
|
("Accept sessions via password", "Hyväksy istunnot salasanalla"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Jatka käyttäen {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Afficher RustDesk"),
|
("Show RustDesk", "Afficher RustDesk"),
|
||||||
("This PC", "Ce PC"),
|
("This PC", "Ce PC"),
|
||||||
("or", "ou"),
|
("or", "ou"),
|
||||||
("Continue with", "Continuer avec"),
|
|
||||||
("Elevate", "Élever les privilèges"),
|
("Elevate", "Élever les privilèges"),
|
||||||
("Zoom cursor", "Augmenter la taille du curseur"),
|
("Zoom cursor", "Augmenter la taille du curseur"),
|
||||||
("Accept sessions via password", "Accepter les sessions via mot de passe"),
|
("Accept sessions via password", "Accepter les sessions via mot de passe"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Journal des modifications"),
|
("Changelog", "Journal des modifications"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Maintenir l’écran allumé lors des sessions sortantes"),
|
("keep-awake-during-outgoing-sessions-label", "Maintenir l’écran allumé lors des sessions sortantes"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Maintenir l’écran allumé lors des sessions entrantes"),
|
("keep-awake-during-incoming-sessions-label", "Maintenir l’écran allumé lors des sessions entrantes"),
|
||||||
|
("Continue with {}", "Continuer avec {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk-ის ჩვენება"),
|
("Show RustDesk", "RustDesk-ის ჩვენება"),
|
||||||
("This PC", "ეს კომპიუტერი"),
|
("This PC", "ეს კომპიუტერი"),
|
||||||
("or", "ან"),
|
("or", "ან"),
|
||||||
("Continue with", "გაგრძელება"),
|
|
||||||
("Elevate", "უფლებების აწევა"),
|
("Elevate", "უფლებების აწევა"),
|
||||||
("Zoom cursor", "კურსორის მასშტაბირება"),
|
("Zoom cursor", "კურსორის მასშტაბირება"),
|
||||||
("Accept sessions via password", "სესიების მიღება პაროლით"),
|
("Accept sessions via password", "სესიების მიღება პაროლით"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "{}-ით გაგრძელება"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "הצג את RustDesk"),
|
("Show RustDesk", "הצג את RustDesk"),
|
||||||
("This PC", "מחשב זה"),
|
("This PC", "מחשב זה"),
|
||||||
("or", "או"),
|
("or", "או"),
|
||||||
("Continue with", "המשך עם"),
|
|
||||||
("Elevate", "הפעל הרשאות מורחבות"),
|
("Elevate", "הפעל הרשאות מורחבות"),
|
||||||
("Zoom cursor", "הגדל סמן"),
|
("Zoom cursor", "הגדל סמן"),
|
||||||
("Accept sessions via password", "קבל הפעלות באמצעות סיסמה"),
|
("Accept sessions via password", "קבל הפעלות באמצעות סיסמה"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "המשך עם {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Prikaži RustDesk"),
|
("Show RustDesk", "Prikaži RustDesk"),
|
||||||
("This PC", "Ovo računalo"),
|
("This PC", "Ovo računalo"),
|
||||||
("or", "ili"),
|
("or", "ili"),
|
||||||
("Continue with", "Nastavi sa"),
|
|
||||||
("Elevate", "Izdigni"),
|
("Elevate", "Izdigni"),
|
||||||
("Zoom cursor", "Zumiraj kursor"),
|
("Zoom cursor", "Zumiraj kursor"),
|
||||||
("Accept sessions via password", "Prihvati sesije preko lozinke"),
|
("Accept sessions via password", "Prihvati sesije preko lozinke"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Nastavi sa {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "A RustDesk megjelenítése"),
|
("Show RustDesk", "A RustDesk megjelenítése"),
|
||||||
("This PC", "Ez a számítógép"),
|
("This PC", "Ez a számítógép"),
|
||||||
("or", "vagy"),
|
("or", "vagy"),
|
||||||
("Continue with", "Folytatás a következővel"),
|
|
||||||
("Elevate", "Hozzáférés engedélyezése"),
|
("Elevate", "Hozzáférés engedélyezése"),
|
||||||
("Zoom cursor", "Kurzor nagyítása"),
|
("Zoom cursor", "Kurzor nagyítása"),
|
||||||
("Accept sessions via password", "Munkamenetek elfogadása jelszóval"),
|
("Accept sessions via password", "Munkamenetek elfogadása jelszóval"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Változáslista"),
|
("Changelog", "Változáslista"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Képernyő aktív állapotban tartása a kimenő munkamenetek során"),
|
("keep-awake-during-outgoing-sessions-label", "Képernyő aktív állapotban tartása a kimenő munkamenetek során"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Képernyő aktív állapotban tartása a bejövő munkamenetek során"),
|
("keep-awake-during-incoming-sessions-label", "Képernyő aktív állapotban tartása a bejövő munkamenetek során"),
|
||||||
|
("Continue with {}", "Folytatás a következővel: {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Tampilkan RustDesk"),
|
("Show RustDesk", "Tampilkan RustDesk"),
|
||||||
("This PC", "PC ini"),
|
("This PC", "PC ini"),
|
||||||
("or", "atau"),
|
("or", "atau"),
|
||||||
("Continue with", "Lanjutkan dengan"),
|
|
||||||
("Elevate", "Elevasi"),
|
("Elevate", "Elevasi"),
|
||||||
("Zoom cursor", "Perbersar Kursor"),
|
("Zoom cursor", "Perbersar Kursor"),
|
||||||
("Accept sessions via password", "Izinkan sesi dengan kata sandi"),
|
("Accept sessions via password", "Izinkan sesi dengan kata sandi"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Lanjutkan dengan {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Visualizza RustDesk"),
|
("Show RustDesk", "Visualizza RustDesk"),
|
||||||
("This PC", "Questo PC"),
|
("This PC", "Questo PC"),
|
||||||
("or", "O"),
|
("or", "O"),
|
||||||
("Continue with", "Continua con"),
|
|
||||||
("Elevate", "Eleva"),
|
("Elevate", "Eleva"),
|
||||||
("Zoom cursor", "Cursore zoom"),
|
("Zoom cursor", "Cursore zoom"),
|
||||||
("Accept sessions via password", "Accetta sessioni via password"),
|
("Accept sessions via password", "Accetta sessioni via password"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Novità programma"),
|
("Changelog", "Novità programma"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Mantieni lo schermo attivo durante le sessioni in uscita"),
|
("keep-awake-during-outgoing-sessions-label", "Mantieni lo schermo attivo durante le sessioni in uscita"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Mantieni lo schermo attivo durante le sessioni in ingresso"),
|
("keep-awake-during-incoming-sessions-label", "Mantieni lo schermo attivo durante le sessioni in ingresso"),
|
||||||
|
("Continue with {}", "Continua con {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk を表示"),
|
("Show RustDesk", "RustDesk を表示"),
|
||||||
("This PC", "この PC"),
|
("This PC", "この PC"),
|
||||||
("or", "または"),
|
("or", "または"),
|
||||||
("Continue with", "で続行"),
|
|
||||||
("Elevate", "昇格"),
|
("Elevate", "昇格"),
|
||||||
("Zoom cursor", "カーソルを拡大する"),
|
("Zoom cursor", "カーソルを拡大する"),
|
||||||
("Accept sessions via password", "パスワードでセッションを承認"),
|
("Accept sessions via password", "パスワードでセッションを承認"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "{} で続行"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk 표시"),
|
("Show RustDesk", "RustDesk 표시"),
|
||||||
("This PC", "이 PC"),
|
("This PC", "이 PC"),
|
||||||
("or", "또는"),
|
("or", "또는"),
|
||||||
("Continue with", "계속"),
|
|
||||||
("Elevate", "권한 상승"),
|
("Elevate", "권한 상승"),
|
||||||
("Zoom cursor", "커서 확대/축소"),
|
("Zoom cursor", "커서 확대/축소"),
|
||||||
("Accept sessions via password", "비밀번호를 통해 세션 수락"),
|
("Accept sessions via password", "비밀번호를 통해 세션 수락"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "변경 기록"),
|
("Changelog", "변경 기록"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "발신 세션 중 화면 켜짐 유지"),
|
("keep-awake-during-outgoing-sessions-label", "발신 세션 중 화면 켜짐 유지"),
|
||||||
("keep-awake-during-incoming-sessions-label", "수신 세션 중 화면 켜짐 유지"),
|
("keep-awake-during-incoming-sessions-label", "수신 세션 중 화면 켜짐 유지"),
|
||||||
|
("Continue with {}", "{}(으)로 계속"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", ""),
|
("Show RustDesk", ""),
|
||||||
("This PC", ""),
|
("This PC", ""),
|
||||||
("or", ""),
|
("or", ""),
|
||||||
("Continue with", ""),
|
|
||||||
("Elevate", ""),
|
("Elevate", ""),
|
||||||
("Zoom cursor", ""),
|
("Zoom cursor", ""),
|
||||||
("Accept sessions via password", ""),
|
("Accept sessions via password", ""),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", ""),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Rodyti RustDesk"),
|
("Show RustDesk", "Rodyti RustDesk"),
|
||||||
("This PC", "Šis kompiuteris"),
|
("This PC", "Šis kompiuteris"),
|
||||||
("or", "arba"),
|
("or", "arba"),
|
||||||
("Continue with", "Tęsti su"),
|
|
||||||
("Elevate", "Pakelti"),
|
("Elevate", "Pakelti"),
|
||||||
("Zoom cursor", "Mastelio keitimo žymeklis"),
|
("Zoom cursor", "Mastelio keitimo žymeklis"),
|
||||||
("Accept sessions via password", "Priimti seansus naudojant slaptažodį"),
|
("Accept sessions via password", "Priimti seansus naudojant slaptažodį"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Tęsti su {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Rādīt RustDesk"),
|
("Show RustDesk", "Rādīt RustDesk"),
|
||||||
("This PC", "Šis dators"),
|
("This PC", "Šis dators"),
|
||||||
("or", "vai"),
|
("or", "vai"),
|
||||||
("Continue with", "Turpināt ar"),
|
|
||||||
("Elevate", "Pacelt"),
|
("Elevate", "Pacelt"),
|
||||||
("Zoom cursor", "Tālummaiņas kursors"),
|
("Zoom cursor", "Tālummaiņas kursors"),
|
||||||
("Accept sessions via password", "Pieņemt sesijas, izmantojot paroli"),
|
("Accept sessions via password", "Pieņemt sesijas, izmantojot paroli"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Turpināt ar {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Vis RustDesk"),
|
("Show RustDesk", "Vis RustDesk"),
|
||||||
("This PC", "Denne PC"),
|
("This PC", "Denne PC"),
|
||||||
("or", "eller"),
|
("or", "eller"),
|
||||||
("Continue with", "Fortsett med"),
|
|
||||||
("Elevate", "Elever"),
|
("Elevate", "Elever"),
|
||||||
("Zoom cursor", "Zoom markør"),
|
("Zoom cursor", "Zoom markør"),
|
||||||
("Accept sessions via password", "Aksepter sesjoner via passord"),
|
("Accept sessions via password", "Aksepter sesjoner via passord"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Fortsett med {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Toon RustDesk"),
|
("Show RustDesk", "Toon RustDesk"),
|
||||||
("This PC", "Deze PC"),
|
("This PC", "Deze PC"),
|
||||||
("or", "of"),
|
("or", "of"),
|
||||||
("Continue with", "Ga verder met"),
|
|
||||||
("Elevate", "Verhoog"),
|
("Elevate", "Verhoog"),
|
||||||
("Zoom cursor", "Zoom cursor"),
|
("Zoom cursor", "Zoom cursor"),
|
||||||
("Accept sessions via password", "Sessies accepteren via wachtwoord"),
|
("Accept sessions via password", "Sessies accepteren via wachtwoord"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Wijzigingenlogboek"),
|
("Changelog", "Wijzigingenlogboek"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Houd het scherm open tijdens de uitgaande sessies."),
|
("keep-awake-during-outgoing-sessions-label", "Houd het scherm open tijdens de uitgaande sessies."),
|
||||||
("keep-awake-during-incoming-sessions-label", "Houd het scherm open tijdens de inkomende sessies."),
|
("keep-awake-during-incoming-sessions-label", "Houd het scherm open tijdens de inkomende sessies."),
|
||||||
|
("Continue with {}", "Ga verder met {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Pokaż RustDesk"),
|
("Show RustDesk", "Pokaż RustDesk"),
|
||||||
("This PC", "Ten komputer"),
|
("This PC", "Ten komputer"),
|
||||||
("or", "lub"),
|
("or", "lub"),
|
||||||
("Continue with", "Kontynuuj z"),
|
|
||||||
("Elevate", "Uzyskaj uprawnienia"),
|
("Elevate", "Uzyskaj uprawnienia"),
|
||||||
("Zoom cursor", "Powiększenie kursora"),
|
("Zoom cursor", "Powiększenie kursora"),
|
||||||
("Accept sessions via password", "Uwierzytelnij sesję używając hasła"),
|
("Accept sessions via password", "Uwierzytelnij sesję używając hasła"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Dziennik zmian"),
|
("Changelog", "Dziennik zmian"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Utrzymuj urządzenie w stanie aktywnym podczas sesji wychodzących"),
|
("keep-awake-during-outgoing-sessions-label", "Utrzymuj urządzenie w stanie aktywnym podczas sesji wychodzących"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Utrzymuj urządzenie w stanie aktywnym podczas sesji przychodzących"),
|
("keep-awake-during-incoming-sessions-label", "Utrzymuj urządzenie w stanie aktywnym podczas sesji przychodzących"),
|
||||||
|
("Continue with {}", "Kontynuuj z {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", ""),
|
("Show RustDesk", ""),
|
||||||
("This PC", ""),
|
("This PC", ""),
|
||||||
("or", ""),
|
("or", ""),
|
||||||
("Continue with", ""),
|
|
||||||
("Elevate", ""),
|
("Elevate", ""),
|
||||||
("Zoom cursor", ""),
|
("Zoom cursor", ""),
|
||||||
("Accept sessions via password", ""),
|
("Accept sessions via password", ""),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", ""),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Exibir RustDesk"),
|
("Show RustDesk", "Exibir RustDesk"),
|
||||||
("This PC", "Este Computador"),
|
("This PC", "Este Computador"),
|
||||||
("or", "ou"),
|
("or", "ou"),
|
||||||
("Continue with", "Continuar com"),
|
|
||||||
("Elevate", "Elevar"),
|
("Elevate", "Elevar"),
|
||||||
("Zoom cursor", "Aumentar cursor"),
|
("Zoom cursor", "Aumentar cursor"),
|
||||||
("Accept sessions via password", "Aceitar sessões via senha"),
|
("Accept sessions via password", "Aceitar sessões via senha"),
|
||||||
@@ -674,21 +673,21 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("dont-show-again-tip", "Não mostrar novamente"),
|
("dont-show-again-tip", "Não mostrar novamente"),
|
||||||
("Take screenshot", "Capturar de tela"),
|
("Take screenshot", "Capturar de tela"),
|
||||||
("Taking screenshot", "Capturando tela"),
|
("Taking screenshot", "Capturando tela"),
|
||||||
("screenshot-merged-screen-not-supported-tip", ""),
|
("screenshot-merged-screen-not-supported-tip", "Mesclar a captura de tela de múltiplos monitores não é suportada no momento. Por favor, alterne para um único monitor e tente novamente."),
|
||||||
("screenshot-action-tip", ""),
|
("screenshot-action-tip", "Por favor, selecione como seguir com a captura de tela."),
|
||||||
("Save as", "Salvar como"),
|
("Save as", "Salvar como"),
|
||||||
("Copy to clipboard", "Copiar para área de transferência"),
|
("Copy to clipboard", "Copiar para área de transferência"),
|
||||||
("Enable remote printer", "Habilitar impressora remota"),
|
("Enable remote printer", "Habilitar impressora remota"),
|
||||||
("Downloading {}", ""),
|
("Downloading {}", "Baixando {}"),
|
||||||
("{} Update", ""),
|
("{} Update", "Atualização do {}"),
|
||||||
("{}-to-update-tip", ""),
|
("{}-to-update-tip", "{} será fechado agora para instalar a nova versão."),
|
||||||
("download-new-version-failed-tip", "Falha no download. Você pode tentar novamente ou clicar no botão \"Download\" para baixar da página releases e atualizar manualmente."),
|
("download-new-version-failed-tip", "Falha no download. Você pode tentar novamente ou clicar no botão \"Download\" para baixar da página releases e atualizar manualmente."),
|
||||||
("Auto update", "Atualização automática"),
|
("Auto update", "Atualização automática"),
|
||||||
("update-failed-check-msi-tip", "Falha na verificação do método de instalação. Clique no botão \"Download\" para baixar da página releases e atualizar manualmente."),
|
("update-failed-check-msi-tip", "Falha na verificação do método de instalação. Clique no botão \"Download\" para baixar da página releases e atualizar manualmente."),
|
||||||
("websocket_tip", "Usando WebSocket, apenas conexões via relay são suportadas."),
|
("websocket_tip", "Usando WebSocket, apenas conexões via relay são suportadas."),
|
||||||
("Use WebSocket", "Usar WebSocket"),
|
("Use WebSocket", "Usar WebSocket"),
|
||||||
("Trackpad speed", "Velocidade do trackpad"),
|
("Trackpad speed", "Velocidade do trackpad"),
|
||||||
("Default trackpad speed", ""),
|
("Default trackpad speed", "Velocidade padrão do trackpad"),
|
||||||
("Numeric one-time password", "Senha numérica de uso único"),
|
("Numeric one-time password", "Senha numérica de uso único"),
|
||||||
("Enable IPv6 P2P connection", "Habilitar conexão IPv6 P2P"),
|
("Enable IPv6 P2P connection", "Habilitar conexão IPv6 P2P"),
|
||||||
("Enable UDP hole punching", "Habilitar UDP hole punching"),
|
("Enable UDP hole punching", "Habilitar UDP hole punching"),
|
||||||
@@ -718,11 +717,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Virtual mouse size", "Tamanho do mouse virtual"),
|
("Virtual mouse size", "Tamanho do mouse virtual"),
|
||||||
("Small", "Pequeno"),
|
("Small", "Pequeno"),
|
||||||
("Large", "Grande"),
|
("Large", "Grande"),
|
||||||
("Show virtual joystick", ""),
|
("Show virtual joystick", "Mostrar joystick virtual"),
|
||||||
("Edit note", "Editar nota"),
|
("Edit note", "Editar nota"),
|
||||||
("Alias", "Apelido"),
|
("Alias", "Apelido"),
|
||||||
("ScrollEdge", "Rolagem nas bordas"),
|
("ScrollEdge", "Rolagem nas bordas"),
|
||||||
("Allow insecure TLS fallback", ""),
|
("Allow insecure TLS fallback", "Permitir fallback TLS inseguro"),
|
||||||
("allow-insecure-tls-fallback-tip", "Por padrão, o RustDesk verifica o certificado do servidor para protocolos que usam TLS.\nCom esta opção habilitada, o RustDesk ignorará a verificação e prosseguirá em caso de falha."),
|
("allow-insecure-tls-fallback-tip", "Por padrão, o RustDesk verifica o certificado do servidor para protocolos que usam TLS.\nCom esta opção habilitada, o RustDesk ignorará a verificação e prosseguirá em caso de falha."),
|
||||||
("Disable UDP", "Desabilitar UDP"),
|
("Disable UDP", "Desabilitar UDP"),
|
||||||
("disable-udp-tip", "Controla se deve usar somente TCP.\nCom esta opção habilitada, o RustDesk não usará mais UDP 21116, TCP 21116 será usado no lugar."),
|
("disable-udp-tip", "Controla se deve usar somente TCP.\nCom esta opção habilitada, o RustDesk não usará mais UDP 21116, TCP 21116 será usado no lugar."),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Registro de alterações"),
|
("Changelog", "Registro de alterações"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Manter tela ativa durante sessões de saída"),
|
("keep-awake-during-outgoing-sessions-label", "Manter tela ativa durante sessões de saída"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Manter tela ativa durante sessões de entrada"),
|
("keep-awake-during-incoming-sessions-label", "Manter tela ativa durante sessões de entrada"),
|
||||||
|
("Continue with {}", "Continuar com {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Afișează RustDesk"),
|
("Show RustDesk", "Afișează RustDesk"),
|
||||||
("This PC", "Acest PC"),
|
("This PC", "Acest PC"),
|
||||||
("or", "sau"),
|
("or", "sau"),
|
||||||
("Continue with", "Continuă cu"),
|
|
||||||
("Elevate", "Sporește privilegii"),
|
("Elevate", "Sporește privilegii"),
|
||||||
("Zoom cursor", "Cursor lupă"),
|
("Zoom cursor", "Cursor lupă"),
|
||||||
("Accept sessions via password", "Acceptă începerea sesiunii folosind parola"),
|
("Accept sessions via password", "Acceptă începerea sesiunii folosind parola"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Continuă cu {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Показать RustDesk"),
|
("Show RustDesk", "Показать RustDesk"),
|
||||||
("This PC", "Этот компьютер"),
|
("This PC", "Этот компьютер"),
|
||||||
("or", "или"),
|
("or", "или"),
|
||||||
("Continue with", "Продолжить с"),
|
|
||||||
("Elevate", "Повысить"),
|
("Elevate", "Повысить"),
|
||||||
("Zoom cursor", "Масштабировать курсор"),
|
("Zoom cursor", "Масштабировать курсор"),
|
||||||
("Accept sessions via password", "Принимать сеансы по паролю"),
|
("Accept sessions via password", "Принимать сеансы по паролю"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Журнал изменений"),
|
("Changelog", "Журнал изменений"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Не отключать экран во время исходящих сеансов"),
|
("keep-awake-during-outgoing-sessions-label", "Не отключать экран во время исходящих сеансов"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Не отключать экран во время входящих сеансов"),
|
("keep-awake-during-incoming-sessions-label", "Не отключать экран во время входящих сеансов"),
|
||||||
|
("Continue with {}", "Продолжить с {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Mustra RustDesk"),
|
("Show RustDesk", "Mustra RustDesk"),
|
||||||
("This PC", "Custu PC"),
|
("This PC", "Custu PC"),
|
||||||
("or", "O"),
|
("or", "O"),
|
||||||
("Continue with", "Sighi cun"),
|
|
||||||
("Elevate", "Cresche"),
|
("Elevate", "Cresche"),
|
||||||
("Zoom cursor", "Cursore de ismanniamentu"),
|
("Zoom cursor", "Cursore de ismanniamentu"),
|
||||||
("Accept sessions via password", "Atzeta sessiones cun sa crae"),
|
("Accept sessions via password", "Atzeta sessiones cun sa crae"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Sighi cun {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Zobraziť RustDesk"),
|
("Show RustDesk", "Zobraziť RustDesk"),
|
||||||
("This PC", "Tento počítač"),
|
("This PC", "Tento počítač"),
|
||||||
("or", "alebo"),
|
("or", "alebo"),
|
||||||
("Continue with", "Pokračovať s"),
|
|
||||||
("Elevate", "Zvýšiť"),
|
("Elevate", "Zvýšiť"),
|
||||||
("Zoom cursor", "Kurzor priblíženia"),
|
("Zoom cursor", "Kurzor priblíženia"),
|
||||||
("Accept sessions via password", "Prijímanie relácií pomocou hesla"),
|
("Accept sessions via password", "Prijímanie relácií pomocou hesla"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Pokračovať s {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Prikaži RustDesk"),
|
("Show RustDesk", "Prikaži RustDesk"),
|
||||||
("This PC", "Ta računalnik"),
|
("This PC", "Ta računalnik"),
|
||||||
("or", "ali"),
|
("or", "ali"),
|
||||||
("Continue with", "Nadaljuj z"),
|
|
||||||
("Elevate", "Povzdig pravic"),
|
("Elevate", "Povzdig pravic"),
|
||||||
("Zoom cursor", "Prilagodi velikost miškinega kazalca"),
|
("Zoom cursor", "Prilagodi velikost miškinega kazalca"),
|
||||||
("Accept sessions via password", "Sprejmi seje z geslom"),
|
("Accept sessions via password", "Sprejmi seje z geslom"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Nadaljuj z {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Shfaq RustDesk"),
|
("Show RustDesk", "Shfaq RustDesk"),
|
||||||
("This PC", "Ky PC"),
|
("This PC", "Ky PC"),
|
||||||
("or", "ose"),
|
("or", "ose"),
|
||||||
("Continue with", "Vazhdo me"),
|
|
||||||
("Elevate", "Ngritja"),
|
("Elevate", "Ngritja"),
|
||||||
("Zoom cursor", "Zmadho kursorin"),
|
("Zoom cursor", "Zmadho kursorin"),
|
||||||
("Accept sessions via password", "Prano sesionin nëpërmjet fjalëkalimit"),
|
("Accept sessions via password", "Prano sesionin nëpërmjet fjalëkalimit"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Vazhdo me {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Prikazi RustDesk"),
|
("Show RustDesk", "Prikazi RustDesk"),
|
||||||
("This PC", "Ovaj PC"),
|
("This PC", "Ovaj PC"),
|
||||||
("or", "ili"),
|
("or", "ili"),
|
||||||
("Continue with", "Nastavi sa"),
|
|
||||||
("Elevate", "Izdigni"),
|
("Elevate", "Izdigni"),
|
||||||
("Zoom cursor", "Zumiraj kursor"),
|
("Zoom cursor", "Zumiraj kursor"),
|
||||||
("Accept sessions via password", "Prihvati sesije preko lozinke"),
|
("Accept sessions via password", "Prihvati sesije preko lozinke"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Nastavi sa {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Visa RustDesk"),
|
("Show RustDesk", "Visa RustDesk"),
|
||||||
("This PC", "Denna dator"),
|
("This PC", "Denna dator"),
|
||||||
("or", "eller"),
|
("or", "eller"),
|
||||||
("Continue with", "Fortsätt med"),
|
|
||||||
("Elevate", "Höj upp"),
|
("Elevate", "Höj upp"),
|
||||||
("Zoom cursor", "Zoom"),
|
("Zoom cursor", "Zoom"),
|
||||||
("Accept sessions via password", "Acceptera sessioner via lösenord"),
|
("Accept sessions via password", "Acceptera sessioner via lösenord"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Fortsätt med {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk ஐ காட்டு"),
|
("Show RustDesk", "RustDesk ஐ காட்டு"),
|
||||||
("This PC", "இந்த PC"),
|
("This PC", "இந்த PC"),
|
||||||
("or", "அல்லது"),
|
("or", "அல்லது"),
|
||||||
("Continue with", "உடன் தொடர்"),
|
|
||||||
("Elevate", "உயர்த்து"),
|
("Elevate", "உயர்த்து"),
|
||||||
("Zoom cursor", "கர்சரை பெரிதாக்கு"),
|
("Zoom cursor", "கர்சரை பெரிதாக்கு"),
|
||||||
("Accept sessions via password", "கடவுச்சொல் வழியாக அமர்வுகளை ஏற்று"),
|
("Accept sessions via password", "கடவுச்சொல் வழியாக அமர்வுகளை ஏற்று"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "{} உடன் தொடர்"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", ""),
|
("Show RustDesk", ""),
|
||||||
("This PC", ""),
|
("This PC", ""),
|
||||||
("or", ""),
|
("or", ""),
|
||||||
("Continue with", ""),
|
|
||||||
("Elevate", ""),
|
("Elevate", ""),
|
||||||
("Zoom cursor", ""),
|
("Zoom cursor", ""),
|
||||||
("Accept sessions via password", ""),
|
("Accept sessions via password", ""),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", ""),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "แสดง RustDesk"),
|
("Show RustDesk", "แสดง RustDesk"),
|
||||||
("This PC", "พีซีเครื่องนี้"),
|
("This PC", "พีซีเครื่องนี้"),
|
||||||
("or", "หรือ"),
|
("or", "หรือ"),
|
||||||
("Continue with", "ทำต่อด้วย"),
|
|
||||||
("Elevate", "ยกระดับ"),
|
("Elevate", "ยกระดับ"),
|
||||||
("Zoom cursor", "ขยายเคอร์เซอร์"),
|
("Zoom cursor", "ขยายเคอร์เซอร์"),
|
||||||
("Accept sessions via password", "ยอมรับการเชื่อมต่อด้วยรหัสผ่าน"),
|
("Accept sessions via password", "ยอมรับการเชื่อมต่อด้วยรหัสผ่าน"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "ทำต่อด้วย {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
133
src/lang/tr.rs
133
src/lang/tr.rs
@@ -3,8 +3,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
[
|
[
|
||||||
("Status", "Durum"),
|
("Status", "Durum"),
|
||||||
("Your Desktop", "Sizin Masaüstünüz"),
|
("Your Desktop", "Sizin Masaüstünüz"),
|
||||||
("desk_tip", "Masaüstünüze bu ID ve şifre ile erişilebilir"),
|
("desk_tip", "Masaüstünüze bu ID ve parola ile erişilebilir"),
|
||||||
("Password", "Şifre"),
|
("Password", "Parola"),
|
||||||
("Ready", "Hazır"),
|
("Ready", "Hazır"),
|
||||||
("Established", "Bağlantı sağlandı"),
|
("Established", "Bağlantı sağlandı"),
|
||||||
("connecting_status", "Bağlanılıyor "),
|
("connecting_status", "Bağlanılıyor "),
|
||||||
@@ -13,16 +13,16 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Service is running", "Servis çalışıyor"),
|
("Service is running", "Servis çalışıyor"),
|
||||||
("Service is not running", "Servis çalışmıyor"),
|
("Service is not running", "Servis çalışmıyor"),
|
||||||
("not_ready_status", "Hazır değil. Bağlantınızı kontrol edin"),
|
("not_ready_status", "Hazır değil. Bağlantınızı kontrol edin"),
|
||||||
("Control Remote Desktop", "Bağlanılacak Uzak Bağlantı ID"),
|
("Control Remote Desktop", "Uzak Masaüstünü Denetle"),
|
||||||
("Transfer file", "Dosya transferi"),
|
("Transfer file", "Dosya transferi"),
|
||||||
("Connect", "Bağlan"),
|
("Connect", "Bağlan"),
|
||||||
("Recent sessions", "Son Bağlanılanlar"),
|
("Recent sessions", "Son oturumlar"),
|
||||||
("Address book", "Adres Defteri"),
|
("Address book", "Adres Defteri"),
|
||||||
("Confirmation", "Onayla"),
|
("Confirmation", "Onayla"),
|
||||||
("TCP tunneling", "TCP Tünelleri"),
|
("TCP tunneling", "TCP tünelleri"),
|
||||||
("Remove", "Kaldır"),
|
("Remove", "Kaldır"),
|
||||||
("Refresh random password", "Yeni rastgele şifre oluştur"),
|
("Refresh random password", "Yeni rastgele parola oluştur"),
|
||||||
("Set your own password", "Kendi şifreni oluştur"),
|
("Set your own password", "Kendi parolanı oluştur"),
|
||||||
("Enable keyboard/mouse", "Klavye ve Fareye izin ver"),
|
("Enable keyboard/mouse", "Klavye ve Fareye izin ver"),
|
||||||
("Enable clipboard", "Kopyalanan geçici veriye izin ver"),
|
("Enable clipboard", "Kopyalanan geçici veriye izin ver"),
|
||||||
("Enable file transfer", "Dosya Transferine izin ver"),
|
("Enable file transfer", "Dosya Transferine izin ver"),
|
||||||
@@ -47,9 +47,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Slogan_tip", "Bu kaotik dünyada gönülden yapıldı!"),
|
("Slogan_tip", "Bu kaotik dünyada gönülden yapıldı!"),
|
||||||
("Privacy Statement", "Gizlilik Beyanı"),
|
("Privacy Statement", "Gizlilik Beyanı"),
|
||||||
("Mute", "Sustur"),
|
("Mute", "Sustur"),
|
||||||
("Build Date", "Yapım Tarihi"),
|
("Build Date", "Derleme Tarihi"),
|
||||||
("Version", "Sürüm"),
|
("Version", "Sürüm"),
|
||||||
("Home", "Anasayfa"),
|
("Home", "Ana Sayfa"),
|
||||||
("Audio Input", "Ses Girişi"),
|
("Audio Input", "Ses Girişi"),
|
||||||
("Enhancements", "Geliştirmeler"),
|
("Enhancements", "Geliştirmeler"),
|
||||||
("Hardware Codec", "Donanımsal Codec"),
|
("Hardware Codec", "Donanımsal Codec"),
|
||||||
@@ -64,18 +64,18 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Not available", "Erişilebilir değil"),
|
("Not available", "Erişilebilir değil"),
|
||||||
("Too frequent", "Çok sık"),
|
("Too frequent", "Çok sık"),
|
||||||
("Cancel", "İptal"),
|
("Cancel", "İptal"),
|
||||||
("Skip", "Geç"),
|
("Skip", "Atla"),
|
||||||
("Close", "Kapat"),
|
("Close", "Kapat"),
|
||||||
("Retry", "Tekrar Dene"),
|
("Retry", "Tekrar Dene"),
|
||||||
("OK", "Tamam"),
|
("OK", "Tamam"),
|
||||||
("Password Required", "Şifre Gerekli"),
|
("Password Required", "Parola Gerekli"),
|
||||||
("Please enter your password", "Lütfen şifrenizi giriniz"),
|
("Please enter your password", "Lütfen parolanızı giriniz"),
|
||||||
("Remember password", "Şifreyi hatırla"),
|
("Remember password", "Parolayı hatırla"),
|
||||||
("Wrong Password", "Hatalı şifre"),
|
("Wrong Password", "Hatalı parola"),
|
||||||
("Do you want to enter again?", "Tekrar giriş yapmak ister misiniz?"),
|
("Do you want to enter again?", "Tekrar giriş yapmak ister misiniz?"),
|
||||||
("Connection Error", "Bağlantı Hatası"),
|
("Connection Error", "Bağlantı Hatası"),
|
||||||
("Error", "Hata"),
|
("Error", "Hata"),
|
||||||
("Reset by the peer", "Eş tarafında sıfırla"),
|
("Reset by the peer", "Eş tarafından sıfırlandı"),
|
||||||
("Connecting...", "Bağlanılıyor..."),
|
("Connecting...", "Bağlanılıyor..."),
|
||||||
("Connection in progress. Please wait.", "Bağlantı sağlanıyor. Lütfen bekleyiniz."),
|
("Connection in progress. Please wait.", "Bağlantı sağlanıyor. Lütfen bekleyiniz."),
|
||||||
("Please try 1 minute later", "Lütfen 1 dakika sonra tekrar deneyiniz"),
|
("Please try 1 minute later", "Lütfen 1 dakika sonra tekrar deneyiniz"),
|
||||||
@@ -141,10 +141,10 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Timeout", "Zaman aşımı"),
|
("Timeout", "Zaman aşımı"),
|
||||||
("Failed to connect to relay server", "Relay sunucusuna bağlanılamadı"),
|
("Failed to connect to relay server", "Relay sunucusuna bağlanılamadı"),
|
||||||
("Failed to connect via rendezvous server", "ID oluşturma sunucusuna bağlanılamadı"),
|
("Failed to connect via rendezvous server", "ID oluşturma sunucusuna bağlanılamadı"),
|
||||||
("Failed to connect via relay server", "Relay oluşturma sunucusuna bağlanılamadı"),
|
("Failed to connect via relay server", "Aktarma sunucusuna bağlanılamadı"),
|
||||||
("Failed to make direct connection to remote desktop", "Uzak masaüstüne doğrudan bağlantı kurulamadı"),
|
("Failed to make direct connection to remote desktop", "Uzak masaüstüne doğrudan bağlantı kurulamadı"),
|
||||||
("Set Password", "Şifre ayarla"),
|
("Set Password", "Parola ayarla"),
|
||||||
("OS Password", "İşletim Sistemi Şifresi"),
|
("OS Password", "İşletim Sistemi Parolası"),
|
||||||
("install_tip", "Kullanıcı Hesabı Denetimi nedeniyle, RustDesk bir uzak masaüstü olarak düzgün çalışmayabilir. Bu sorunu önlemek için, RustDesk'i sistem seviyesinde kurmak için aşağıdaki butona tıklayın."),
|
("install_tip", "Kullanıcı Hesabı Denetimi nedeniyle, RustDesk bir uzak masaüstü olarak düzgün çalışmayabilir. Bu sorunu önlemek için, RustDesk'i sistem seviyesinde kurmak için aşağıdaki butona tıklayın."),
|
||||||
("Click to upgrade", "Yükseltmek için tıklayınız"),
|
("Click to upgrade", "Yükseltmek için tıklayınız"),
|
||||||
("Configure", "Ayarla"),
|
("Configure", "Ayarla"),
|
||||||
@@ -184,7 +184,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Direct and unencrypted connection", "Doğrudan ve şifrelenmemiş bağlantı"),
|
("Direct and unencrypted connection", "Doğrudan ve şifrelenmemiş bağlantı"),
|
||||||
("Relayed and unencrypted connection", "Aktarmalı ve şifrelenmemiş bağlantı"),
|
("Relayed and unencrypted connection", "Aktarmalı ve şifrelenmemiş bağlantı"),
|
||||||
("Enter Remote ID", "Uzak ID'yi Girin"),
|
("Enter Remote ID", "Uzak ID'yi Girin"),
|
||||||
("Enter your password", "Şifrenizi girin"),
|
("Enter your password", "Parolanızı girin"),
|
||||||
("Logging in...", "Giriş yapılıyor..."),
|
("Logging in...", "Giriş yapılıyor..."),
|
||||||
("Enable RDP session sharing", "RDP oturum paylaşımını etkinleştir"),
|
("Enable RDP session sharing", "RDP oturum paylaşımını etkinleştir"),
|
||||||
("Auto Login", "Otomatik giriş"),
|
("Auto Login", "Otomatik giriş"),
|
||||||
@@ -208,8 +208,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Closed manually by the peer", "Eş tarafından manuel olarak kapatıldı"),
|
("Closed manually by the peer", "Eş tarafından manuel olarak kapatıldı"),
|
||||||
("Enable remote configuration modification", "Uzaktan yapılandırma değişikliğini etkinleştir"),
|
("Enable remote configuration modification", "Uzaktan yapılandırma değişikliğini etkinleştir"),
|
||||||
("Run without install", "Yüklemeden çalıştır"),
|
("Run without install", "Yüklemeden çalıştır"),
|
||||||
("Connect via relay", ""),
|
("Connect via relay", "Aktarmalı üzerinden bağlan"),
|
||||||
("Always connect via relay", "Always connect via relay"),
|
("Always connect via relay", "Her zaman aktarmalı üzerinden bağlan"),
|
||||||
("whitelist_tip", "Bu masaüstüne yalnızca yetkili IP adresleri bağlanabilir"),
|
("whitelist_tip", "Bu masaüstüne yalnızca yetkili IP adresleri bağlanabilir"),
|
||||||
("Login", "Giriş yap"),
|
("Login", "Giriş yap"),
|
||||||
("Verify", "Doğrula"),
|
("Verify", "Doğrula"),
|
||||||
@@ -226,11 +226,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Unselect all tags", "Tüm etiketlerin seçimini kaldır"),
|
("Unselect all tags", "Tüm etiketlerin seçimini kaldır"),
|
||||||
("Network error", "Bağlantı hatası"),
|
("Network error", "Bağlantı hatası"),
|
||||||
("Username missed", "Kullanıcı adı boş"),
|
("Username missed", "Kullanıcı adı boş"),
|
||||||
("Password missed", "Şifre boş"),
|
("Password missed", "Parola boş"),
|
||||||
("Wrong credentials", "Yanlış kimlik bilgileri"),
|
("Wrong credentials", "Yanlış kimlik bilgileri"),
|
||||||
("The verification code is incorrect or has expired", "Doğrulama kodu hatalı veya süresi dolmuş"),
|
("The verification code is incorrect or has expired", "Doğrulama kodu hatalı veya süresi dolmuş"),
|
||||||
("Edit Tag", "Etiketi düzenle"),
|
("Edit Tag", "Etiketi düzenle"),
|
||||||
("Forget Password", "Şifreyi Unut"),
|
("Forget Password", "Parolayı Unut"),
|
||||||
("Favorites", "Favoriler"),
|
("Favorites", "Favoriler"),
|
||||||
("Add to Favorites", "Favorilere ekle"),
|
("Add to Favorites", "Favorilere ekle"),
|
||||||
("Remove from Favorites", "Favorilerden çıkar"),
|
("Remove from Favorites", "Favorilerden çıkar"),
|
||||||
@@ -268,9 +268,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Share screen", "Ekranı Paylaş"),
|
("Share screen", "Ekranı Paylaş"),
|
||||||
("Chat", "Mesajlaş"),
|
("Chat", "Mesajlaş"),
|
||||||
("Total", "Toplam"),
|
("Total", "Toplam"),
|
||||||
("items", "öğeler"),
|
("items", "ögeler"),
|
||||||
("Selected", "Seçildi"),
|
("Selected", "Seçildi"),
|
||||||
("Screen Capture", "Ekran görüntüsü"),
|
("Screen Capture", "Ekran Görüntüsü"),
|
||||||
("Input Control", "Giriş Kontrolü"),
|
("Input Control", "Giriş Kontrolü"),
|
||||||
("Audio Capture", "Ses Yakalama"),
|
("Audio Capture", "Ses Yakalama"),
|
||||||
("Do you accept?", "Kabul ediyor musun?"),
|
("Do you accept?", "Kabul ediyor musun?"),
|
||||||
@@ -285,7 +285,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("android_start_service_tip", "Ekran paylaşım hizmetini başlatmak için [Hizmeti başlat] ögesine dokunun veya [Ekran Görüntüsü] iznini etkinleştirin."),
|
("android_start_service_tip", "Ekran paylaşım hizmetini başlatmak için [Hizmeti başlat] ögesine dokunun veya [Ekran Görüntüsü] iznini etkinleştirin."),
|
||||||
("android_permission_may_not_change_tip", "Kurulan bağlantılara ait izinler, yeniden bağlantı kurulana kadar anında değiştirilemez."),
|
("android_permission_may_not_change_tip", "Kurulan bağlantılara ait izinler, yeniden bağlantı kurulana kadar anında değiştirilemez."),
|
||||||
("Account", "Hesap"),
|
("Account", "Hesap"),
|
||||||
("Overwrite", "üzerine yaz"),
|
("Overwrite", "Üzerine yaz"),
|
||||||
("This file exists, skip or overwrite this file?", "Bu dosya var, bu dosya atlansın veya üzerine yazılsın mı?"),
|
("This file exists, skip or overwrite this file?", "Bu dosya var, bu dosya atlansın veya üzerine yazılsın mı?"),
|
||||||
("Quit", "Çıkış"),
|
("Quit", "Çıkış"),
|
||||||
("Help", "Yardım"),
|
("Help", "Yardım"),
|
||||||
@@ -295,8 +295,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Unsupported", "desteklenmiyor"),
|
("Unsupported", "desteklenmiyor"),
|
||||||
("Peer denied", "eş reddedildi"),
|
("Peer denied", "eş reddedildi"),
|
||||||
("Please install plugins", "Lütfen eklentileri yükleyin"),
|
("Please install plugins", "Lütfen eklentileri yükleyin"),
|
||||||
("Peer exit", "eş çıkışı"),
|
("Peer exit", "Eş çıkışı"),
|
||||||
("Failed to turn off", "kapatılamadı"),
|
("Failed to turn off", "Kapatılamadı"),
|
||||||
("Turned off", "Kapatıldı"),
|
("Turned off", "Kapatıldı"),
|
||||||
("Language", "Dil"),
|
("Language", "Dil"),
|
||||||
("Keep RustDesk background service", "RustDesk arka plan hizmetini sürdürün"),
|
("Keep RustDesk background service", "RustDesk arka plan hizmetini sürdürün"),
|
||||||
@@ -308,32 +308,32 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Legacy mode", "Eski mod"),
|
("Legacy mode", "Eski mod"),
|
||||||
("Map mode", "Haritalama modu"),
|
("Map mode", "Haritalama modu"),
|
||||||
("Translate mode", "Çeviri modu"),
|
("Translate mode", "Çeviri modu"),
|
||||||
("Use permanent password", "Kalıcı şifre kullan"),
|
("Use permanent password", "Kalıcı parola kullan"),
|
||||||
("Use both passwords", "İki şifreyi de kullan"),
|
("Use both passwords", "İki parolayı da kullan"),
|
||||||
("Set permanent password", "Kalıcı şifre oluştur"),
|
("Set permanent password", "Kalıcı parola oluştur"),
|
||||||
("Enable remote restart", "Uzaktan yeniden başlatmayı aktif et"),
|
("Enable remote restart", "Uzaktan yeniden başlatmayı aktif et"),
|
||||||
("Restart remote device", "Uzaktaki cihazı yeniden başlat"),
|
("Restart remote device", "Uzaktaki cihazı yeniden başlat"),
|
||||||
("Are you sure you want to restart", "Yeniden başlatmak istediğinize emin misin?"),
|
("Are you sure you want to restart", "Yeniden başlatmak istediğine emin misin?"),
|
||||||
("Restarting remote device", "Uzaktan yeniden başlatılıyor"),
|
("Restarting remote device", "Uzaktan yeniden başlatılıyor"),
|
||||||
("remote_restarting_tip", "Uzak cihaz yeniden başlatılıyor, lütfen bu mesaj kutusunu kapatın ve bir süre sonra kalıcı şifre ile yeniden bağlanın"),
|
("remote_restarting_tip", "Uzak cihaz yeniden başlatılıyor, lütfen bu mesaj kutusunu kapatın ve bir süre sonra kalıcı parola ile yeniden bağlanın"),
|
||||||
("Copied", "Kopyalandı"),
|
("Copied", "Kopyalandı"),
|
||||||
("Exit Fullscreen", "Tam ekrandan çık"),
|
("Exit Fullscreen", "Tam Ekrandan Çık"),
|
||||||
("Fullscreen", "Tam ekran"),
|
("Fullscreen", "Tam Ekran"),
|
||||||
("Mobile Actions", "Mobil İşlemler"),
|
("Mobile Actions", "Mobil İşlemler"),
|
||||||
("Select Monitor", "Monitörü Seç"),
|
("Select Monitor", "Monitörü Seç"),
|
||||||
("Control Actions", "Kontrol Eylemleri"),
|
("Control Actions", "Kontrol Eylemleri"),
|
||||||
("Display Settings", "Görüntü ayarları"),
|
("Display Settings", "Görüntü Ayarları"),
|
||||||
("Ratio", "Oran"),
|
("Ratio", "Oran"),
|
||||||
("Image Quality", "Görüntü kalitesi"),
|
("Image Quality", "Görüntü Kalitesi"),
|
||||||
("Scroll Style", "Kaydırma Stili"),
|
("Scroll Style", "Kaydırma Stili"),
|
||||||
("Show Toolbar", "Araç Çubuğunu Göster"),
|
("Show Toolbar", "Araç Çubuğunu Göster"),
|
||||||
("Hide Toolbar", "Araç Çubuğunu Gizle"),
|
("Hide Toolbar", "Araç Çubuğunu Gizle"),
|
||||||
("Direct Connection", "Doğrudan Bağlantı"),
|
("Direct Connection", "Doğrudan Bağlantı"),
|
||||||
("Relay Connection", "Röle Bağlantısı"),
|
("Relay Connection", "Aktarmalı Bağlantı"),
|
||||||
("Secure Connection", "Güvenli Bağlantı"),
|
("Secure Connection", "Güvenli Bağlantı"),
|
||||||
("Insecure Connection", "Güvenli Olmayan Bağlantı"),
|
("Insecure Connection", "Güvenli Olmayan Bağlantı"),
|
||||||
("Scale original", "Orijinali ölçeklendir"),
|
("Scale original", "Orijinal ölçekte"),
|
||||||
("Scale adaptive", "Ölçek uyarlanabilir"),
|
("Scale adaptive", "Uyarlanabilir ölçekte"),
|
||||||
("General", "Genel"),
|
("General", "Genel"),
|
||||||
("Security", "Güvenlik"),
|
("Security", "Güvenlik"),
|
||||||
("Theme", "Tema"),
|
("Theme", "Tema"),
|
||||||
@@ -347,18 +347,18 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Enable audio", "Sesi Aktif Et"),
|
("Enable audio", "Sesi Aktif Et"),
|
||||||
("Unlock Network Settings", "Ağ Ayarlarını Aç"),
|
("Unlock Network Settings", "Ağ Ayarlarını Aç"),
|
||||||
("Server", "Sunucu"),
|
("Server", "Sunucu"),
|
||||||
("Direct IP Access", "Direk IP Erişimi"),
|
("Direct IP Access", "Doğrudan IP Erişimi"),
|
||||||
("Proxy", "Vekil"),
|
("Proxy", "Vekil"),
|
||||||
("Apply", "Uygula"),
|
("Apply", "Uygula"),
|
||||||
("Disconnect all devices?", "Tüm cihazların bağlantısını kes?"),
|
("Disconnect all devices?", "Tüm cihazların bağlantısı kesilsin mi?"),
|
||||||
("Clear", "Temizle"),
|
("Clear", "Temizle"),
|
||||||
("Audio Input Device", "Ses Giriş Aygıtı"),
|
("Audio Input Device", "Ses Giriş Aygıtı"),
|
||||||
("Use IP Whitelisting", "IP Beyaz Listeyi Kullan"),
|
("Use IP Whitelisting", "IP Beyaz Listeyi Kullan"),
|
||||||
("Network", "Ağ"),
|
("Network", "Ağ"),
|
||||||
("Pin Toolbar", "Araç Çubuğunu Sabitle"),
|
("Pin Toolbar", "Araç Çubuğunu Sabitle"),
|
||||||
("Unpin Toolbar", "Araç Çubuğunu Sabitlemeyi Kaldır"),
|
("Unpin Toolbar", "Araç Çubuğunu Sabitlemeyi Kaldır"),
|
||||||
("Recording", "Kayıt Ediliyor"),
|
("Recording", "Kaydediliyor"),
|
||||||
("Directory", "Klasör"),
|
("Directory", "Dizin"),
|
||||||
("Automatically record incoming sessions", "Gelen oturumları otomatik olarak kaydet"),
|
("Automatically record incoming sessions", "Gelen oturumları otomatik olarak kaydet"),
|
||||||
("Automatically record outgoing sessions", "Giden oturumları otomatik olarak kaydet"),
|
("Automatically record outgoing sessions", "Giden oturumları otomatik olarak kaydet"),
|
||||||
("Change", "Değiştir"),
|
("Change", "Değiştir"),
|
||||||
@@ -384,16 +384,15 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "RustDesk'i Göster"),
|
("Show RustDesk", "RustDesk'i Göster"),
|
||||||
("This PC", "Bu PC"),
|
("This PC", "Bu PC"),
|
||||||
("or", "veya"),
|
("or", "veya"),
|
||||||
("Continue with", "bununla devam et"),
|
|
||||||
("Elevate", "Yükseltme"),
|
("Elevate", "Yükseltme"),
|
||||||
("Zoom cursor", "Yakınlaştırma imleci"),
|
("Zoom cursor", "Yakınlaştırma imleci"),
|
||||||
("Accept sessions via password", "Oturumları parola ile kabul etme"),
|
("Accept sessions via password", "Oturumları parola ile kabul etme"),
|
||||||
("Accept sessions via click", "Tıklama yoluyla oturumları kabul edin"),
|
("Accept sessions via click", "Tıklama yoluyla oturumları kabul edin"),
|
||||||
("Accept sessions via both", "Her ikisi aracılığıyla oturumları kabul edin"),
|
("Accept sessions via both", "Her ikisi aracılığıyla oturumları kabul edin"),
|
||||||
("Please wait for the remote side to accept your session request...", "Lütfen uzak tarafın oturum isteğinizi kabul etmesini bekleyin..."),
|
("Please wait for the remote side to accept your session request...", "Lütfen uzak tarafın oturum isteğinizi kabul etmesini bekleyin..."),
|
||||||
("One-time Password", "Tek Kullanımlık Şifre"),
|
("One-time Password", "Tek Kullanımlık Parola"),
|
||||||
("Use one-time password", "Tek seferlik parola kullanın"),
|
("Use one-time password", "Tek seferlik parola kullanın"),
|
||||||
("One-time password length", "Tek seferlik şifre uzunluğu"),
|
("One-time password length", "Tek seferlik parola uzunluğu"),
|
||||||
("Request access to your device", "Cihazınıza erişim talep edin"),
|
("Request access to your device", "Cihazınıza erişim talep edin"),
|
||||||
("Hide connection management window", "Bağlantı yönetimi penceresini gizle"),
|
("Hide connection management window", "Bağlantı yönetimi penceresini gizle"),
|
||||||
("hide_cm_tip", "Oturumları yalnızca parola ile kabul edebilir ve kalıcı parola kullanıyorsanız gizlemeye izin verin"),
|
("hide_cm_tip", "Oturumları yalnızca parola ile kabul edebilir ve kalıcı parola kullanıyorsanız gizlemeye izin verin"),
|
||||||
@@ -442,7 +441,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Voice call", "Sesli görüşme"),
|
("Voice call", "Sesli görüşme"),
|
||||||
("Text chat", "Metin sohbeti"),
|
("Text chat", "Metin sohbeti"),
|
||||||
("Stop voice call", "Sesli görüşmeyi durdur"),
|
("Stop voice call", "Sesli görüşmeyi durdur"),
|
||||||
("relay_hint_tip", "Doğrudan bağlanmak mümkün olmayabilir; röle aracılığıyla bağlanmayı deneyebilirsiniz. Ayrıca, ilk denemenizde bir röle kullanmak istiyorsanız, ID'nin sonuna \"/r\" ekleyebilir veya son oturum kartındaki \"Her Zaman Röle Üzerinden Bağlan\" seçeneğini seçebilirsiniz."),
|
("relay_hint_tip", "Doğrudan bağlanmak mümkün olmayabilir; aktarmalı bağlanmayı deneyebilirsiniz. Ayrıca, ilk denemenizde aktarma sunucusu kullanmak istiyorsanız ID'nin sonuna \"/r\" ekleyebilir veya son oturum kartındaki \"Her Zaman Aktarmalı Üzerinden Bağlan\" seçeneğini seçebilirsiniz."),
|
||||||
("Reconnect", "Yeniden Bağlan"),
|
("Reconnect", "Yeniden Bağlan"),
|
||||||
("Codec", "Kodlayıcı"),
|
("Codec", "Kodlayıcı"),
|
||||||
("Resolution", "Çözünürlük"),
|
("Resolution", "Çözünürlük"),
|
||||||
@@ -477,7 +476,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("no_desktop_title_tip", "Masaüstü mevcut değil"),
|
("no_desktop_title_tip", "Masaüstü mevcut değil"),
|
||||||
("no_desktop_text_tip", "Lütfen GNOME masaüstünü yükleyin"),
|
("no_desktop_text_tip", "Lütfen GNOME masaüstünü yükleyin"),
|
||||||
("No need to elevate", "Yükseltmeye gerek yok"),
|
("No need to elevate", "Yükseltmeye gerek yok"),
|
||||||
("System Sound", "Sistem Ses"),
|
("System Sound", "Sistem Sesi"),
|
||||||
("Default", "Varsayılan"),
|
("Default", "Varsayılan"),
|
||||||
("New RDP", "Yeni RDP"),
|
("New RDP", "Yeni RDP"),
|
||||||
("Fingerprint", "Parmak İzi"),
|
("Fingerprint", "Parmak İzi"),
|
||||||
@@ -495,7 +494,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("resolution_fit_local_tip", "Yerel çözünürlüğe sığdır"),
|
("resolution_fit_local_tip", "Yerel çözünürlüğe sığdır"),
|
||||||
("resolution_custom_tip", "Özel çözünürlük"),
|
("resolution_custom_tip", "Özel çözünürlük"),
|
||||||
("Collapse toolbar", "Araç çubuğunu daralt"),
|
("Collapse toolbar", "Araç çubuğunu daralt"),
|
||||||
("Accept and Elevate", "Kabul et ve yükselt"),
|
("Accept and Elevate", "Kabul Et ve Yükselt"),
|
||||||
("accept_and_elevate_btn_tooltip", "Bağlantıyı kabul et ve UAC izinlerini yükselt."),
|
("accept_and_elevate_btn_tooltip", "Bağlantıyı kabul et ve UAC izinlerini yükselt."),
|
||||||
("clipboard_wait_response_timeout_tip", "Kopyalama yanıtı için zaman aşımına uğradı."),
|
("clipboard_wait_response_timeout_tip", "Kopyalama yanıtı için zaman aşımına uğradı."),
|
||||||
("Incoming connection", "Gelen bağlantı"),
|
("Incoming connection", "Gelen bağlantı"),
|
||||||
@@ -534,7 +533,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("scam_text1", "Eğer tanımadığınız ve güvenmediğiniz birisiyle telefonda konuşuyorsanız ve sizden RustDesk'i kullanmanızı ve hizmeti başlatmanızı istiyorsa devam etmeyin ve hemen telefonu kapatın."),
|
("scam_text1", "Eğer tanımadığınız ve güvenmediğiniz birisiyle telefonda konuşuyorsanız ve sizden RustDesk'i kullanmanızı ve hizmeti başlatmanızı istiyorsa devam etmeyin ve hemen telefonu kapatın."),
|
||||||
("scam_text2", "Muhtemelen paranızı veya diğer özel bilgilerinizi çalmaya çalışan dolandırıcılardır."),
|
("scam_text2", "Muhtemelen paranızı veya diğer özel bilgilerinizi çalmaya çalışan dolandırıcılardır."),
|
||||||
("Don't show again", "Bir daha gösterme"),
|
("Don't show again", "Bir daha gösterme"),
|
||||||
("I Agree", "Kabul ediyorum"),
|
("I Agree", "Kabul Ediyorum"),
|
||||||
("Decline", "Reddet"),
|
("Decline", "Reddet"),
|
||||||
("Timeout in minutes", "Zaman aşımı (dakika)"),
|
("Timeout in minutes", "Zaman aşımı (dakika)"),
|
||||||
("auto_disconnect_option_tip", "Kullanıcı etkin olmadığında gelen oturumları otomatik olarak kapat"),
|
("auto_disconnect_option_tip", "Kullanıcı etkin olmadığında gelen oturumları otomatik olarak kapat"),
|
||||||
@@ -559,7 +558,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Plug out all", "Tümünü çıkar"),
|
("Plug out all", "Tümünü çıkar"),
|
||||||
("True color (4:4:4)", "Gerçek renk (4:4:4)"),
|
("True color (4:4:4)", "Gerçek renk (4:4:4)"),
|
||||||
("Enable blocking user input", "Kullanıcı girişini engellemeyi etkinleştir"),
|
("Enable blocking user input", "Kullanıcı girişini engellemeyi etkinleştir"),
|
||||||
("id_input_tip", "Bir ID, doğrudan IP veya portlu bir etki alanı (<domain>:<port>) girebilirsiniz.\nBaşka bir sunucudaki bir cihaza erişmek istiyorsanız lütfen sunucu adresini (<id>@<server_address>?key=<key_value>) ekleyin, örneğin,\n9123456234@192.168.16.1:21117?key=5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=.\nGenel bir sunucudaki bir cihaza erişmek istiyorsanız lütfen \"<id>@public\" girin, genel sunucu için anahtara gerek yoktur.\n\nİlk bağlantıda bir röle bağlantısının kullanılmasını zorlamak istiyorsanız ID'nin sonuna \"/r\" ekleyin, örneğin, \"9123456234/r\"."),
|
("id_input_tip", "Bir ID, doğrudan IP veya portlu bir etki alanı (<domain>:<port>) girebilirsiniz.\nBaşka bir sunucudaki bir cihaza erişmek istiyorsanız lütfen sunucu adresini (<id>@<server_address>?key=<key_value>) ekleyin, örneğin,\n9123456234@192.168.16.1:21117?key=5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=.\nGenel bir sunucudaki bir cihaza erişmek istiyorsanız lütfen \"<id>@public\" girin, genel sunucu için anahtara gerek yoktur.\n\nİlk bağlantıda bir aktarma bağlantısının kullanılmasını zorlamak istiyorsanız ID'nin sonuna \"/r\" ekleyin, örneğin, \"9123456234/r\"."),
|
||||||
("privacy_mode_impl_mag_tip", "Mod 1"),
|
("privacy_mode_impl_mag_tip", "Mod 1"),
|
||||||
("privacy_mode_impl_virtual_display_tip", "Mod 2"),
|
("privacy_mode_impl_virtual_display_tip", "Mod 2"),
|
||||||
("Enter privacy mode", "Gizlilik moduna gir"),
|
("Enter privacy mode", "Gizlilik moduna gir"),
|
||||||
@@ -581,12 +580,12 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Please select the session you want to connect to", "Lütfen bağlanmak istediğiniz oturumu seçin"),
|
("Please select the session you want to connect to", "Lütfen bağlanmak istediğiniz oturumu seçin"),
|
||||||
("powered_by_me", "RustDesk tarafından desteklenmektedir"),
|
("powered_by_me", "RustDesk tarafından desteklenmektedir"),
|
||||||
("outgoing_only_desk_tip", "Bu özelleştirilmiş bir sürümdür.\nDiğer cihazlara bağlanabilirsiniz, ancak diğer cihazlar cihazınıza bağlanamaz."),
|
("outgoing_only_desk_tip", "Bu özelleştirilmiş bir sürümdür.\nDiğer cihazlara bağlanabilirsiniz, ancak diğer cihazlar cihazınıza bağlanamaz."),
|
||||||
("preset_password_warning", "Bu özelleştirilmiş sürüm, önceden ayarlanmış bir şifre ile birlikte gelir. Bu parolayı bilen herkes cihazınızın tam kontrolünü ele geçirebilir. Bunu beklemiyorsanız yazılımı hemen kaldırın."),
|
("preset_password_warning", "Bu özelleştirilmiş sürüm, önceden ayarlanmış bir parola ile birlikte gelir. Bu parolayı bilen herkes cihazınızın tam kontrolünü ele geçirebilir. Bunu beklemiyorsanız yazılımı hemen kaldırın."),
|
||||||
("Security Alert", "Güvenlik Uyarısı"),
|
("Security Alert", "Güvenlik Uyarısı"),
|
||||||
("My address book", "Adres defterim"),
|
("My address book", "Adres defterim"),
|
||||||
("Personal", "Kişisel"),
|
("Personal", "Kişisel"),
|
||||||
("Owner", "Sahip"),
|
("Owner", "Sahip"),
|
||||||
("Set shared password", "Paylaşılan şifreyi ayarla"),
|
("Set shared password", "Paylaşılan parolayı ayarla"),
|
||||||
("Exist in", "İçinde varolan"),
|
("Exist in", "İçinde varolan"),
|
||||||
("Read-only", "Salt okunur"),
|
("Read-only", "Salt okunur"),
|
||||||
("Read/Write", "Okuma/Yazma"),
|
("Read/Write", "Okuma/Yazma"),
|
||||||
@@ -599,7 +598,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Follow remote cursor", "Uzak imleci takip et"),
|
("Follow remote cursor", "Uzak imleci takip et"),
|
||||||
("Follow remote window focus", "Uzak pencere odağını takip et"),
|
("Follow remote window focus", "Uzak pencere odağını takip et"),
|
||||||
("default_proxy_tip", "Varsayılan protokol ve port Socks5 ve 1080'dir."),
|
("default_proxy_tip", "Varsayılan protokol ve port Socks5 ve 1080'dir."),
|
||||||
("no_audio_input_device_tip", "Varsayılan protokol ve port, Socks5 ve 1080'dir"),
|
("no_audio_input_device_tip", "Ses girişi aygıtı bulunamadı."),
|
||||||
("Incoming", "Gelen"),
|
("Incoming", "Gelen"),
|
||||||
("Outgoing", "Giden"),
|
("Outgoing", "Giden"),
|
||||||
("Clear Wayland screen selection", "Wayland ekran seçimini temizle"),
|
("Clear Wayland screen selection", "Wayland ekran seçimini temizle"),
|
||||||
@@ -612,7 +611,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("floating_window_tip", "RustDesk arka plan hizmetini açık tutmaya yardımcı olur"),
|
("floating_window_tip", "RustDesk arka plan hizmetini açık tutmaya yardımcı olur"),
|
||||||
("Keep screen on", "Ekranı açık tut"),
|
("Keep screen on", "Ekranı açık tut"),
|
||||||
("Never", "Asla"),
|
("Never", "Asla"),
|
||||||
("During controlled", "Kontrol sırasınd"),
|
("During controlled", "Kontrol sırasında"),
|
||||||
("During service is on", "Servis açıkken"),
|
("During service is on", "Servis açıkken"),
|
||||||
("Capture screen using DirectX", "DirectX kullanarak ekran görüntüsü al"),
|
("Capture screen using DirectX", "DirectX kullanarak ekran görüntüsü al"),
|
||||||
("Back", "Geri"),
|
("Back", "Geri"),
|
||||||
@@ -620,7 +619,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Volume up", "Sesi yükselt"),
|
("Volume up", "Sesi yükselt"),
|
||||||
("Volume down", "Sesi azalt"),
|
("Volume down", "Sesi azalt"),
|
||||||
("Power", "Güç"),
|
("Power", "Güç"),
|
||||||
("Telegram bot", "Telegram bot"),
|
("Telegram bot", "Telegram botu"),
|
||||||
("enable-bot-tip", "Bu özelliği etkinleştirirseniz botunuzdan 2FA kodunu alabilirsiniz. Aynı zamanda bağlantı bildirimi işlevi de görebilir."),
|
("enable-bot-tip", "Bu özelliği etkinleştirirseniz botunuzdan 2FA kodunu alabilirsiniz. Aynı zamanda bağlantı bildirimi işlevi de görebilir."),
|
||||||
("enable-bot-desc", "1. @BotFather ile bir sohbet açın.\n2. \"/newbot\" komutunu gönderin. Bu adımı tamamladıktan sonra bir jeton alacaksınız.\n3. Yeni oluşturduğunuz botla bir sohbet başlatın. Etkinleştirmek için eğik çizgiyle (\"/\") başlayan \"/merhaba\" gibi bir mesaj gönderin.\n"),
|
("enable-bot-desc", "1. @BotFather ile bir sohbet açın.\n2. \"/newbot\" komutunu gönderin. Bu adımı tamamladıktan sonra bir jeton alacaksınız.\n3. Yeni oluşturduğunuz botla bir sohbet başlatın. Etkinleştirmek için eğik çizgiyle (\"/\") başlayan \"/merhaba\" gibi bir mesaj gönderin.\n"),
|
||||||
("cancel-2fa-confirm-tip", "2FA'yı iptal etmek istediğinizden emin misiniz?"),
|
("cancel-2fa-confirm-tip", "2FA'yı iptal etmek istediğinizden emin misiniz?"),
|
||||||
@@ -642,7 +641,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Invalid file name", "Geçersiz dosya adı"),
|
("Invalid file name", "Geçersiz dosya adı"),
|
||||||
("one-way-file-transfer-tip", "Kontrol edilen tarafta tek yönlü dosya transferi aktiftir."),
|
("one-way-file-transfer-tip", "Kontrol edilen tarafta tek yönlü dosya transferi aktiftir."),
|
||||||
("Authentication Required", "Kimlik Doğrulama Gerekli"),
|
("Authentication Required", "Kimlik Doğrulama Gerekli"),
|
||||||
("Authenticate", "Kimlik doğrulaması"),
|
("Authenticate", "Kimlik Doğrula"),
|
||||||
("web_id_input_tip", "Aynı sunucuda bir kimlik girebilirsiniz, web istemcisinde doğrudan IP erişimi desteklenmez.\nBaşka bir sunucudaki bir cihaza erişmek istiyorsanız lütfen sunucu adresini (<id>@<server_address>?key=<key_value>) ekleyin, örneğin,\n9123456234@192.168.16.1:21117?key=5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=.\nGenel bir sunucudaki bir cihaza erişmek istiyorsanız, lütfen \"<id>@public\" girin, genel sunucu için anahtara gerek yoktur."),
|
("web_id_input_tip", "Aynı sunucuda bir kimlik girebilirsiniz, web istemcisinde doğrudan IP erişimi desteklenmez.\nBaşka bir sunucudaki bir cihaza erişmek istiyorsanız lütfen sunucu adresini (<id>@<server_address>?key=<key_value>) ekleyin, örneğin,\n9123456234@192.168.16.1:21117?key=5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=.\nGenel bir sunucudaki bir cihaza erişmek istiyorsanız, lütfen \"<id>@public\" girin, genel sunucu için anahtara gerek yoktur."),
|
||||||
("Download", "İndir"),
|
("Download", "İndir"),
|
||||||
("Upload folder", "Klasör yükle"),
|
("Upload folder", "Klasör yükle"),
|
||||||
@@ -661,9 +660,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("printer-{}-not-installed-tip", "{} Yazıcısı yüklü değil."),
|
("printer-{}-not-installed-tip", "{} Yazıcısı yüklü değil."),
|
||||||
("printer-{}-ready-tip", "{} Yazıcısı kuruldu ve kullanıma hazır."),
|
("printer-{}-ready-tip", "{} Yazıcısı kuruldu ve kullanıma hazır."),
|
||||||
("Install {} Printer", "{} Yazıcısını Yükle"),
|
("Install {} Printer", "{} Yazıcısını Yükle"),
|
||||||
("Outgoing Print Jobs", "Giden Baskı İşleri"),
|
("Outgoing Print Jobs", "Giden Yazdırma İşleri"),
|
||||||
("Incoming Print Jobs", "Gelen Baskı İşleri"),
|
("Incoming Print Jobs", "Gelen Yazdırma İşleri"),
|
||||||
("Incoming Print Job", "Gelen Baskı İşi"),
|
("Incoming Print Job", "Gelen Yazdırma İşi"),
|
||||||
("use-the-default-printer-tip", "Varsayılan yazıcıyı kullan"),
|
("use-the-default-printer-tip", "Varsayılan yazıcıyı kullan"),
|
||||||
("use-the-selected-printer-tip", "Seçili yazıcıyı kullan"),
|
("use-the-selected-printer-tip", "Seçili yazıcıyı kullan"),
|
||||||
("auto-print-tip", "Seçili yazıcıyı kullanarak otomatik olarak yazdır."),
|
("auto-print-tip", "Seçili yazıcıyı kullanarak otomatik olarak yazdır."),
|
||||||
@@ -685,11 +684,11 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("download-new-version-failed-tip", "İndirme başarısız oldu. Tekrar deneyebilir veya 'İndir' düğmesine tıklayarak sürüm sayfasından manuel olarak indirip güncelleyebilirsiniz."),
|
("download-new-version-failed-tip", "İndirme başarısız oldu. Tekrar deneyebilir veya 'İndir' düğmesine tıklayarak sürüm sayfasından manuel olarak indirip güncelleyebilirsiniz."),
|
||||||
("Auto update", "Otomatik güncelleme"),
|
("Auto update", "Otomatik güncelleme"),
|
||||||
("update-failed-check-msi-tip", "Kurulum yöntemi denetimi başarısız oldu. Sürüm sayfasından indirmek ve manuel olarak yükseltmek için lütfen \"İndir\" düğmesine tıklayın."),
|
("update-failed-check-msi-tip", "Kurulum yöntemi denetimi başarısız oldu. Sürüm sayfasından indirmek ve manuel olarak yükseltmek için lütfen \"İndir\" düğmesine tıklayın."),
|
||||||
("websocket_tip", "WebSocket kullanıldığında yalnızca röle bağlantıları desteklenir."),
|
("websocket_tip", "WebSocket kullanıldığında yalnızca aktarma bağlantıları desteklenir."),
|
||||||
("Use WebSocket", "WebSocket'ı kullan"),
|
("Use WebSocket", "WebSocket'ı kullan"),
|
||||||
("Trackpad speed", "İzleme paneli hızı"),
|
("Trackpad speed", "İzleme paneli hızı"),
|
||||||
("Default trackpad speed", "Varsayılan izleme paneli hızı"),
|
("Default trackpad speed", "Varsayılan izleme paneli hızı"),
|
||||||
("Numeric one-time password", "Sayısal tek seferlik şifre"),
|
("Numeric one-time password", "Sayısal tek seferlik parola"),
|
||||||
("Enable IPv6 P2P connection", "IPv6 P2P bağlantısını etkinleştir"),
|
("Enable IPv6 P2P connection", "IPv6 P2P bağlantısını etkinleştir"),
|
||||||
("Enable UDP hole punching", "UDP delik açmayı etkinleştir"),
|
("Enable UDP hole punching", "UDP delik açmayı etkinleştir"),
|
||||||
("View camera", "Kamerayı görüntüle"),
|
("View camera", "Kamerayı görüntüle"),
|
||||||
@@ -701,16 +700,16 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("New tab", "Yeni sekme"),
|
("New tab", "Yeni sekme"),
|
||||||
("Keep terminal sessions on disconnect", "Bağlantı kesildiğinde terminal oturumlarını açık tut"),
|
("Keep terminal sessions on disconnect", "Bağlantı kesildiğinde terminal oturumlarını açık tut"),
|
||||||
("Terminal (Run as administrator)", "Terminal (Yönetici olarak çalıştır)"),
|
("Terminal (Run as administrator)", "Terminal (Yönetici olarak çalıştır)"),
|
||||||
("terminal-admin-login-tip", "Lütfen kontrol edilen tarafın yönetici kullanıcı adı ve şifresini giriniz."),
|
("terminal-admin-login-tip", "Lütfen kontrol edilen tarafın yönetici kullanıcı adı ve parolasını giriniz."),
|
||||||
("Failed to get user token.", "Kullanıcı belirteci alınamadı."),
|
("Failed to get user token.", "Kullanıcı belirteci alınamadı."),
|
||||||
("Incorrect username or password.", "Hatalı kullanıcı adı veya şifre."),
|
("Incorrect username or password.", "Hatalı kullanıcı adı veya parola."),
|
||||||
("The user is not an administrator.", "Kullanıcı bir yönetici değil."),
|
("The user is not an administrator.", "Kullanıcı bir yönetici değil."),
|
||||||
("Failed to check if the user is an administrator.", "Kullanıcının yönetici olup olmadığı kontrol edilemedi."),
|
("Failed to check if the user is an administrator.", "Kullanıcının yönetici olup olmadığı kontrol edilemedi."),
|
||||||
("Supported only in the installed version.", "Sadece yüklü sürümde desteklenir."),
|
("Supported only in the installed version.", "Sadece yüklü sürümde desteklenir."),
|
||||||
("elevation_username_tip", "Kullanıcı adı veya etki alanı\\kullanıcı adı girin"),
|
("elevation_username_tip", "Kullanıcı adı veya etki alanı\\kullanıcı adı girin"),
|
||||||
("Preparing for installation ...", "Kuruluma hazırlanıyor..."),
|
("Preparing for installation ...", "Kuruluma hazırlanıyor..."),
|
||||||
("Show my cursor", "İmlecimi göster"),
|
("Show my cursor", "İmlecimi göster"),
|
||||||
("Scale custom", "Özel boyutlandır"),
|
("Scale custom", "Özel ölçekte"),
|
||||||
("Custom scale slider", "Özel ölçek kaydırıcısı"),
|
("Custom scale slider", "Özel ölçek kaydırıcısı"),
|
||||||
("Decrease", "Azalt"),
|
("Decrease", "Azalt"),
|
||||||
("Increase", "Arttır"),
|
("Increase", "Arttır"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Değişiklik Günlüğü"),
|
("Changelog", "Değişiklik Günlüğü"),
|
||||||
("keep-awake-during-outgoing-sessions-label", "Giden oturumlar süresince ekranı açık tutun"),
|
("keep-awake-during-outgoing-sessions-label", "Giden oturumlar süresince ekranı açık tutun"),
|
||||||
("keep-awake-during-incoming-sessions-label", "Gelen oturumlar süresince ekranı açık tutun"),
|
("keep-awake-during-incoming-sessions-label", "Gelen oturumlar süresince ekranı açık tutun"),
|
||||||
|
("Continue with {}", "{} ile devam et"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "顯示 RustDesk"),
|
("Show RustDesk", "顯示 RustDesk"),
|
||||||
("This PC", "此電腦"),
|
("This PC", "此電腦"),
|
||||||
("or", "或"),
|
("or", "或"),
|
||||||
("Continue with", "繼續"),
|
|
||||||
("Elevate", "提升權限"),
|
("Elevate", "提升權限"),
|
||||||
("Zoom cursor", "縮放游標"),
|
("Zoom cursor", "縮放游標"),
|
||||||
("Accept sessions via password", "只允許透過輸入密碼進行連線"),
|
("Accept sessions via password", "只允許透過輸入密碼進行連線"),
|
||||||
@@ -729,15 +728,17 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("server-oss-not-support-tip", "注意:RustDesk 開源伺服器 (OSS server) 不包含此功能。"),
|
("server-oss-not-support-tip", "注意:RustDesk 開源伺服器 (OSS server) 不包含此功能。"),
|
||||||
("input note here", "輸入備註"),
|
("input note here", "輸入備註"),
|
||||||
("note-at-conn-end-tip", "在連接結束時請求備註"),
|
("note-at-conn-end-tip", "在連接結束時請求備註"),
|
||||||
("Show terminal extra keys", ""),
|
("Show terminal extra keys", "顯示終端機額外按鍵"),
|
||||||
("Relative mouse mode", ""),
|
("Relative mouse mode", "相對滑鼠模式"),
|
||||||
("rel-mouse-not-supported-peer-tip", ""),
|
("rel-mouse-not-supported-peer-tip", "被控端不支援相對滑鼠模式"),
|
||||||
("rel-mouse-not-ready-tip", ""),
|
("rel-mouse-not-ready-tip", "相對滑鼠模式尚未就緒,請稍候再試"),
|
||||||
("rel-mouse-lock-failed-tip", ""),
|
("rel-mouse-lock-failed-tip", "無法鎖定游標,相對滑鼠模式已停用"),
|
||||||
("rel-mouse-exit-{}-tip", ""),
|
("rel-mouse-exit-{}-tip", "按下 {} 退出"),
|
||||||
("rel-mouse-permission-lost-tip", ""),
|
("rel-mouse-permission-lost-tip", "鍵盤權限被撤銷,相對滑鼠模式已被停用"),
|
||||||
("Changelog", ""),
|
("Changelog", "更新日誌"),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", "在連出工作階段期間保持螢幕喚醒"),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", "在連入工作階段期間保持螢幕喚醒"),
|
||||||
|
("Continue with {}", "使用 {} 登入"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Показати RustDesk"),
|
("Show RustDesk", "Показати RustDesk"),
|
||||||
("This PC", "Цей ПК"),
|
("This PC", "Цей ПК"),
|
||||||
("or", "чи"),
|
("or", "чи"),
|
||||||
("Continue with", "Продовжити з"),
|
|
||||||
("Elevate", "Розширення прав"),
|
("Elevate", "Розширення прав"),
|
||||||
("Zoom cursor", "Збільшити вказівник"),
|
("Zoom cursor", "Збільшити вказівник"),
|
||||||
("Accept sessions via password", "Підтверджувати сеанси паролем"),
|
("Accept sessions via password", "Підтверджувати сеанси паролем"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", ""),
|
("Changelog", ""),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Продовжити з {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Show RustDesk", "Hiện RustDesk"),
|
("Show RustDesk", "Hiện RustDesk"),
|
||||||
("This PC", "Máy tính này"),
|
("This PC", "Máy tính này"),
|
||||||
("or", "hoặc"),
|
("or", "hoặc"),
|
||||||
("Continue with", "Tiếp tục với"),
|
|
||||||
("Elevate", "Nâng quyền"),
|
("Elevate", "Nâng quyền"),
|
||||||
("Zoom cursor", "Phóng to con trỏ"),
|
("Zoom cursor", "Phóng to con trỏ"),
|
||||||
("Accept sessions via password", "Chấp nhận phiên qua mật khẩu"),
|
("Accept sessions via password", "Chấp nhận phiên qua mật khẩu"),
|
||||||
@@ -739,5 +738,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Changelog", "Nhật ký thay đổi"),
|
("Changelog", "Nhật ký thay đổi"),
|
||||||
("keep-awake-during-outgoing-sessions-label", ""),
|
("keep-awake-during-outgoing-sessions-label", ""),
|
||||||
("keep-awake-during-incoming-sessions-label", ""),
|
("keep-awake-during-incoming-sessions-label", ""),
|
||||||
|
("Continue with {}", "Tiếp tục với {}"),
|
||||||
|
("Display Name", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2088,3 +2088,122 @@ pub fn is_selinux_enforcing() -> bool {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the app ID for shortcuts inhibitor permission.
|
||||||
|
/// Returns different ID based on whether running in Flatpak or native.
|
||||||
|
/// The ID must match the installed .desktop filename, as GNOME Shell's
|
||||||
|
/// inhibitShortcutsDialog uses `Shell.WindowTracker.get_window_app(window).get_id()`.
|
||||||
|
fn get_shortcuts_inhibitor_app_id() -> String {
|
||||||
|
if is_flatpak() {
|
||||||
|
// In Flatpak, FLATPAK_ID is set automatically by the runtime to the app ID
|
||||||
|
// (e.g., "com.rustdesk.RustDesk"). This is the most reliable source.
|
||||||
|
// Fall back to constructing from app name if not available.
|
||||||
|
match std::env::var("FLATPAK_ID") {
|
||||||
|
Ok(id) if !id.is_empty() => format!("{}.desktop", id),
|
||||||
|
_ => {
|
||||||
|
let app_name = crate::get_app_name();
|
||||||
|
format!("com.{}.{}.desktop", app_name.to_lowercase(), app_name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
format!("{}.desktop", crate::get_app_name().to_lowercase())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const PERMISSION_STORE_DEST: &str = "org.freedesktop.impl.portal.PermissionStore";
|
||||||
|
const PERMISSION_STORE_PATH: &str = "/org/freedesktop/impl/portal/PermissionStore";
|
||||||
|
const PERMISSION_STORE_IFACE: &str = "org.freedesktop.impl.portal.PermissionStore";
|
||||||
|
|
||||||
|
/// Clear GNOME shortcuts inhibitor permission via D-Bus.
|
||||||
|
/// This allows the permission dialog to be shown again.
|
||||||
|
pub fn clear_gnome_shortcuts_inhibitor_permission() -> ResultType<()> {
|
||||||
|
let app_id = get_shortcuts_inhibitor_app_id();
|
||||||
|
log::info!(
|
||||||
|
"Clearing shortcuts inhibitor permission for app_id: {}, is_flatpak: {}",
|
||||||
|
app_id,
|
||||||
|
is_flatpak()
|
||||||
|
);
|
||||||
|
|
||||||
|
let conn = dbus::blocking::Connection::new_session()?;
|
||||||
|
let proxy = conn.with_proxy(
|
||||||
|
PERMISSION_STORE_DEST,
|
||||||
|
PERMISSION_STORE_PATH,
|
||||||
|
std::time::Duration::from_secs(3),
|
||||||
|
);
|
||||||
|
|
||||||
|
// DeletePermission(s table, s id, s app) -> ()
|
||||||
|
let result: Result<(), dbus::Error> = proxy.method_call(
|
||||||
|
PERMISSION_STORE_IFACE,
|
||||||
|
"DeletePermission",
|
||||||
|
("gnome", "shortcuts-inhibitor", app_id.as_str()),
|
||||||
|
);
|
||||||
|
|
||||||
|
match result {
|
||||||
|
Ok(()) => {
|
||||||
|
log::info!("Successfully cleared GNOME shortcuts inhibitor permission");
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
let err_name = e.name().unwrap_or("");
|
||||||
|
// If the permission doesn't exist, that's also fine
|
||||||
|
if err_name == "org.freedesktop.portal.Error.NotFound"
|
||||||
|
|| err_name == "org.freedesktop.DBus.Error.UnknownObject"
|
||||||
|
|| err_name == "org.freedesktop.DBus.Error.ServiceUnknown"
|
||||||
|
{
|
||||||
|
log::info!("GNOME shortcuts inhibitor permission was not set ({})", err_name);
|
||||||
|
Ok(())
|
||||||
|
} else {
|
||||||
|
bail!("Failed to clear permission: {}", e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Check if GNOME shortcuts inhibitor permission exists.
|
||||||
|
pub fn has_gnome_shortcuts_inhibitor_permission() -> bool {
|
||||||
|
let app_id = get_shortcuts_inhibitor_app_id();
|
||||||
|
|
||||||
|
let conn = match dbus::blocking::Connection::new_session() {
|
||||||
|
Ok(c) => c,
|
||||||
|
Err(e) => {
|
||||||
|
log::debug!("Failed to connect to session bus: {}", e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
let proxy = conn.with_proxy(
|
||||||
|
PERMISSION_STORE_DEST,
|
||||||
|
PERMISSION_STORE_PATH,
|
||||||
|
std::time::Duration::from_secs(3),
|
||||||
|
);
|
||||||
|
|
||||||
|
// Lookup(s table, s id) -> (a{sas} permissions, v data)
|
||||||
|
// We only need the permissions dict; check if app_id is a key.
|
||||||
|
let result: Result<
|
||||||
|
(
|
||||||
|
std::collections::HashMap<String, Vec<String>>,
|
||||||
|
dbus::arg::Variant<Box<dyn dbus::arg::RefArg>>,
|
||||||
|
),
|
||||||
|
dbus::Error,
|
||||||
|
> = proxy.method_call(
|
||||||
|
PERMISSION_STORE_IFACE,
|
||||||
|
"Lookup",
|
||||||
|
("gnome", "shortcuts-inhibitor"),
|
||||||
|
);
|
||||||
|
|
||||||
|
match result {
|
||||||
|
Ok((permissions, _)) => {
|
||||||
|
let found = permissions.contains_key(&app_id);
|
||||||
|
log::debug!(
|
||||||
|
"Shortcuts inhibitor permission lookup: app_id={}, found={}, keys={:?}",
|
||||||
|
app_id,
|
||||||
|
found,
|
||||||
|
permissions.keys().collect::<Vec<_>>()
|
||||||
|
);
|
||||||
|
found
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
log::debug!("Failed to query shortcuts inhibitor permission: {}", e);
|
||||||
|
false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ lazy_static::lazy_static! {
|
|||||||
}
|
}
|
||||||
static SHOULD_EXIT: AtomicBool = AtomicBool::new(false);
|
static SHOULD_EXIT: AtomicBool = AtomicBool::new(false);
|
||||||
static MANUAL_RESTARTED: AtomicBool = AtomicBool::new(false);
|
static MANUAL_RESTARTED: AtomicBool = AtomicBool::new(false);
|
||||||
|
static SENT_REGISTER_PK: AtomicBool = AtomicBool::new(false);
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct RendezvousMediator {
|
pub struct RendezvousMediator {
|
||||||
@@ -689,6 +690,7 @@ impl RendezvousMediator {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
socket.send(&msg_out).await?;
|
socket.send(&msg_out).await?;
|
||||||
|
SENT_REGISTER_PK.store(true, Ordering::SeqCst);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -904,3 +906,28 @@ async fn udp_nat_listen(
|
|||||||
})?;
|
})?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When config is not yet synced from root, register_pk may have already been sent with a new generated pk.
|
||||||
|
// After config sync completes, the pk may change. This struct detects pk changes and triggers
|
||||||
|
// a re-registration by setting key_confirmed to false.
|
||||||
|
// NOTE:
|
||||||
|
// This only corrects PK registration for the current ID. If root uses a non-default mac-generated ID,
|
||||||
|
// this does not resolve the multi-ID issue by itself.
|
||||||
|
pub struct CheckIfResendPk {
|
||||||
|
pk: Option<Vec<u8>>,
|
||||||
|
}
|
||||||
|
impl CheckIfResendPk {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self {
|
||||||
|
pk: Config::get_cached_pk(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
impl Drop for CheckIfResendPk {
|
||||||
|
fn drop(&mut self) {
|
||||||
|
if SENT_REGISTER_PK.load(Ordering::SeqCst) && Config::get_cached_pk() != self.pk {
|
||||||
|
Config::set_key_confirmed(false);
|
||||||
|
log::info!("Set key_confirmed to false due to pk changed, will resend register_pk");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ type ConnMap = HashMap<i32, ConnInner>;
|
|||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
const CONFIG_SYNC_INTERVAL_SECS: f32 = 0.3;
|
const CONFIG_SYNC_INTERVAL_SECS: f32 = 0.3;
|
||||||
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
|
// 3s is enough for at least one initial sync attempt:
|
||||||
|
// 0.3s backoff + up to 1s connect timeout + up to 1s response timeout.
|
||||||
|
const CONFIG_SYNC_INITIAL_WAIT_SECS: u64 = 3;
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
pub static ref CHILD_PROCESS: Childs = Default::default();
|
pub static ref CHILD_PROCESS: Childs = Default::default();
|
||||||
@@ -600,7 +604,7 @@ pub async fn start_server(is_server: bool, no_server: bool) {
|
|||||||
allow_err!(input_service::setup_uinput(0, 1920, 0, 1080).await);
|
allow_err!(input_service::setup_uinput(0, 1920, 0, 1080).await);
|
||||||
}
|
}
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
tokio::spawn(async { sync_and_watch_config_dir().await });
|
wait_initial_config_sync().await;
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
crate::platform::try_kill_broker();
|
crate::platform::try_kill_broker();
|
||||||
#[cfg(feature = "hwcodec")]
|
#[cfg(feature = "hwcodec")]
|
||||||
@@ -685,13 +689,43 @@ pub async fn start_ipc_url_server() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
async fn sync_and_watch_config_dir() {
|
async fn wait_initial_config_sync() {
|
||||||
if crate::platform::is_root() {
|
if crate::platform::is_root() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Non-server process should not block startup, but still keeps background sync/watch alive.
|
||||||
|
if !crate::is_server() {
|
||||||
|
tokio::spawn(async move {
|
||||||
|
sync_and_watch_config_dir(None).await;
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let (sync_done_tx, mut sync_done_rx) = tokio::sync::oneshot::channel::<()>();
|
||||||
|
tokio::spawn(async move {
|
||||||
|
sync_and_watch_config_dir(Some(sync_done_tx)).await;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Server process waits up to N seconds for initial root->local sync to reduce stale-start window.
|
||||||
|
tokio::select! {
|
||||||
|
_ = &mut sync_done_rx => {
|
||||||
|
}
|
||||||
|
_ = tokio::time::sleep(Duration::from_secs(CONFIG_SYNC_INITIAL_WAIT_SECS)) => {
|
||||||
|
log::warn!(
|
||||||
|
"timed out waiting {}s for initial config sync, continue startup and keep syncing in background",
|
||||||
|
CONFIG_SYNC_INITIAL_WAIT_SECS
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
|
async fn sync_and_watch_config_dir(sync_done_tx: Option<tokio::sync::oneshot::Sender<()>>) {
|
||||||
let mut cfg0 = (Config::get(), Config2::get());
|
let mut cfg0 = (Config::get(), Config2::get());
|
||||||
let mut synced = false;
|
let mut synced = false;
|
||||||
|
let mut is_root_config_empty = false;
|
||||||
|
let mut sync_done_tx = sync_done_tx;
|
||||||
let tries = if crate::is_server() { 30 } else { 3 };
|
let tries = if crate::is_server() { 30 } else { 3 };
|
||||||
log::debug!("#tries of ipc service connection: {}", tries);
|
log::debug!("#tries of ipc service connection: {}", tries);
|
||||||
use hbb_common::sleep;
|
use hbb_common::sleep;
|
||||||
@@ -706,6 +740,8 @@ async fn sync_and_watch_config_dir() {
|
|||||||
Data::SyncConfig(Some(configs)) => {
|
Data::SyncConfig(Some(configs)) => {
|
||||||
let (config, config2) = *configs;
|
let (config, config2) = *configs;
|
||||||
let _chk = crate::ipc::CheckIfRestart::new();
|
let _chk = crate::ipc::CheckIfRestart::new();
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
let _chk_pk = crate::CheckIfResendPk::new();
|
||||||
if !config.is_empty() {
|
if !config.is_empty() {
|
||||||
if cfg0.0 != config {
|
if cfg0.0 != config {
|
||||||
cfg0.0 = config.clone();
|
cfg0.0 = config.clone();
|
||||||
@@ -717,8 +753,20 @@ async fn sync_and_watch_config_dir() {
|
|||||||
Config2::set(config2);
|
Config2::set(config2);
|
||||||
log::info!("sync config2 from root");
|
log::info!("sync config2 from root");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// only on macos, because this issue was only reproduced on macos
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
{
|
||||||
|
// root config is empty, mark for sync in watch loop
|
||||||
|
// to prevent root from generating a new config on login screen
|
||||||
|
is_root_config_empty = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
synced = true;
|
synced = true;
|
||||||
|
// Notify startup waiter once initial sync phase finishes successfully.
|
||||||
|
if let Some(tx) = sync_done_tx.take() {
|
||||||
|
let _ = tx.send(());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
};
|
};
|
||||||
@@ -729,8 +777,14 @@ async fn sync_and_watch_config_dir() {
|
|||||||
loop {
|
loop {
|
||||||
sleep(CONFIG_SYNC_INTERVAL_SECS).await;
|
sleep(CONFIG_SYNC_INTERVAL_SECS).await;
|
||||||
let cfg = (Config::get(), Config2::get());
|
let cfg = (Config::get(), Config2::get());
|
||||||
if cfg != cfg0 {
|
let should_sync =
|
||||||
log::info!("config updated, sync to root");
|
cfg != cfg0 || (is_root_config_empty && !cfg.0.is_empty());
|
||||||
|
if should_sync {
|
||||||
|
if is_root_config_empty {
|
||||||
|
log::info!("root config is empty, sync our config to root");
|
||||||
|
} else {
|
||||||
|
log::info!("config updated, sync to root");
|
||||||
|
}
|
||||||
match conn.send(&Data::SyncConfig(Some(cfg.clone().into()))).await {
|
match conn.send(&Data::SyncConfig(Some(cfg.clone().into()))).await {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::error!("sync config to root failed: {}", e);
|
log::error!("sync config to root failed: {}", e);
|
||||||
@@ -745,6 +799,7 @@ async fn sync_and_watch_config_dir() {
|
|||||||
_ => {
|
_ => {
|
||||||
cfg0 = cfg;
|
cfg0 = cfg;
|
||||||
conn.next_timeout(1000).await.ok();
|
conn.next_timeout(1000).await.ok();
|
||||||
|
is_root_config_empty = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -755,6 +810,10 @@ async fn sync_and_watch_config_dir() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Notify startup waiter even when initial sync is skipped/failed, to avoid unnecessary waiting.
|
||||||
|
if let Some(tx) = sync_done_tx.take() {
|
||||||
|
let _ = tx.send(());
|
||||||
|
}
|
||||||
log::warn!("skipped config sync");
|
log::warn!("skipped config sync");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,10 @@ struct Input {
|
|||||||
|
|
||||||
const KEY_CHAR_START: u64 = 9999;
|
const KEY_CHAR_START: u64 = 9999;
|
||||||
|
|
||||||
|
// XKB keycode for Insert key (evdev KEY_INSERT code 110 + 8 for XKB offset)
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
const XKB_KEY_INSERT: u16 = evdev::Key::KEY_INSERT.code() + 8;
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
pub struct MouseCursorSub {
|
pub struct MouseCursorSub {
|
||||||
inner: ConnInner,
|
inner: ConnInner,
|
||||||
@@ -1105,8 +1109,12 @@ pub fn handle_mouse_simulation_(evt: &MouseEvent, conn: i32) {
|
|||||||
// Clamp delta to prevent extreme/malicious values from reaching OS APIs.
|
// Clamp delta to prevent extreme/malicious values from reaching OS APIs.
|
||||||
// This matches the Flutter client's kMaxRelativeMouseDelta constant.
|
// This matches the Flutter client's kMaxRelativeMouseDelta constant.
|
||||||
const MAX_RELATIVE_MOUSE_DELTA: i32 = 10000;
|
const MAX_RELATIVE_MOUSE_DELTA: i32 = 10000;
|
||||||
let dx = evt.x.clamp(-MAX_RELATIVE_MOUSE_DELTA, MAX_RELATIVE_MOUSE_DELTA);
|
let dx = evt
|
||||||
let dy = evt.y.clamp(-MAX_RELATIVE_MOUSE_DELTA, MAX_RELATIVE_MOUSE_DELTA);
|
.x
|
||||||
|
.clamp(-MAX_RELATIVE_MOUSE_DELTA, MAX_RELATIVE_MOUSE_DELTA);
|
||||||
|
let dy = evt
|
||||||
|
.y
|
||||||
|
.clamp(-MAX_RELATIVE_MOUSE_DELTA, MAX_RELATIVE_MOUSE_DELTA);
|
||||||
en.mouse_move_relative(dx, dy);
|
en.mouse_move_relative(dx, dy);
|
||||||
// Get actual cursor position after relative movement for tracking
|
// Get actual cursor position after relative movement for tracking
|
||||||
if let Some((x, y)) = crate::get_cursor_pos() {
|
if let Some((x, y)) = crate::get_cursor_pos() {
|
||||||
@@ -1465,20 +1473,26 @@ fn map_keyboard_mode(evt: &KeyEvent) {
|
|||||||
// Wayland
|
// Wayland
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
if !crate::platform::linux::is_x11() {
|
if !crate::platform::linux::is_x11() {
|
||||||
let mut en = ENIGO.lock().unwrap();
|
wayland_send_raw_key(evt.chr() as u16, evt.down);
|
||||||
let code = evt.chr() as u16;
|
|
||||||
|
|
||||||
if evt.down {
|
|
||||||
en.key_down(enigo::Key::Raw(code)).ok();
|
|
||||||
} else {
|
|
||||||
en.key_up(enigo::Key::Raw(code));
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sim_rdev_rawkey_position(evt.chr() as _, evt.down);
|
sim_rdev_rawkey_position(evt.chr() as _, evt.down);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Send raw keycode on Wayland via the active backend (uinput or RemoteDesktop portal).
|
||||||
|
/// The keycode is expected to be a Linux keycode (evdev code + 8 for X11 compatibility).
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[inline]
|
||||||
|
fn wayland_send_raw_key(code: u16, down: bool) {
|
||||||
|
let mut en = ENIGO.lock().unwrap();
|
||||||
|
if down {
|
||||||
|
en.key_down(enigo::Key::Raw(code)).ok();
|
||||||
|
} else {
|
||||||
|
en.key_up(enigo::Key::Raw(code));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
fn add_flags_to_enigo(en: &mut Enigo, key_event: &KeyEvent) {
|
fn add_flags_to_enigo(en: &mut Enigo, key_event: &KeyEvent) {
|
||||||
// When long-pressed the command key, then press and release
|
// When long-pressed the command key, then press and release
|
||||||
@@ -1559,6 +1573,20 @@ fn need_to_uppercase(en: &mut Enigo) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn process_chr(en: &mut Enigo, chr: u32, down: bool) {
|
fn process_chr(en: &mut Enigo, chr: u32, down: bool) {
|
||||||
|
// On Wayland with uinput mode, use clipboard for character input
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
if !crate::platform::linux::is_x11() && wayland_use_uinput() {
|
||||||
|
// Skip clipboard for hotkeys (Ctrl/Alt/Meta pressed)
|
||||||
|
if !is_hotkey_modifier_pressed(en) {
|
||||||
|
if down {
|
||||||
|
if let Ok(c) = char::try_from(chr) {
|
||||||
|
input_char_via_clipboard_server(en, c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let key = char_value_to_key(chr);
|
let key = char_value_to_key(chr);
|
||||||
|
|
||||||
if down {
|
if down {
|
||||||
@@ -1578,15 +1606,136 @@ fn process_chr(en: &mut Enigo, chr: u32, down: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn process_unicode(en: &mut Enigo, chr: u32) {
|
fn process_unicode(en: &mut Enigo, chr: u32) {
|
||||||
|
// On Wayland with uinput mode, use clipboard for character input
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
if !crate::platform::linux::is_x11() && wayland_use_uinput() {
|
||||||
|
if let Ok(c) = char::try_from(chr) {
|
||||||
|
input_char_via_clipboard_server(en, c);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if let Ok(chr) = char::try_from(chr) {
|
if let Ok(chr) = char::try_from(chr) {
|
||||||
en.key_sequence(&chr.to_string());
|
en.key_sequence(&chr.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_seq(en: &mut Enigo, sequence: &str) {
|
fn process_seq(en: &mut Enigo, sequence: &str) {
|
||||||
|
// On Wayland with uinput mode, use clipboard for text input
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
if !crate::platform::linux::is_x11() && wayland_use_uinput() {
|
||||||
|
input_text_via_clipboard_server(en, sequence);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
en.key_sequence(&sequence);
|
en.key_sequence(&sequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Delay in milliseconds to wait for clipboard to sync on Wayland.
|
||||||
|
/// This is an empirical value — Wayland provides no callback or event to confirm
|
||||||
|
/// clipboard content has been received by the compositor. Under heavy system load,
|
||||||
|
/// this delay may be insufficient, but there is no reliable alternative mechanism.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
const CLIPBOARD_SYNC_DELAY_MS: u64 = 50;
|
||||||
|
|
||||||
|
/// Internal: Set clipboard content without delay.
|
||||||
|
/// Returns true if clipboard was set successfully.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
fn set_clipboard_content(text: &str) -> bool {
|
||||||
|
use arboard::{Clipboard, LinuxClipboardKind, SetExtLinux};
|
||||||
|
|
||||||
|
let mut clipboard = match Clipboard::new() {
|
||||||
|
Ok(cb) => cb,
|
||||||
|
Err(e) => {
|
||||||
|
log::error!("set_clipboard_content: failed to create clipboard: {:?}", e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Set both CLIPBOARD and PRIMARY selections
|
||||||
|
// Terminal uses PRIMARY for Shift+Insert, GUI apps use CLIPBOARD
|
||||||
|
if let Err(e) = clipboard
|
||||||
|
.set()
|
||||||
|
.clipboard(LinuxClipboardKind::Clipboard)
|
||||||
|
.text(text.to_owned())
|
||||||
|
{
|
||||||
|
log::error!("set_clipboard_content: failed to set CLIPBOARD: {:?}", e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if let Err(e) = clipboard
|
||||||
|
.set()
|
||||||
|
.clipboard(LinuxClipboardKind::Primary)
|
||||||
|
.text(text.to_owned())
|
||||||
|
{
|
||||||
|
log::warn!("set_clipboard_content: failed to set PRIMARY: {:?}", e);
|
||||||
|
// Continue anyway, CLIPBOARD might work
|
||||||
|
}
|
||||||
|
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Set clipboard content for paste operation (sync version for use in blocking contexts).
|
||||||
|
///
|
||||||
|
/// Note: The original clipboard content is intentionally NOT restored after paste.
|
||||||
|
/// Restoring clipboard could cause race conditions where subsequent keystrokes
|
||||||
|
/// might accidentally paste the old clipboard content instead of the intended input.
|
||||||
|
/// This trade-off prioritizes input reliability over preserving clipboard state.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[inline]
|
||||||
|
pub(super) fn set_clipboard_for_paste_sync(text: &str) -> bool {
|
||||||
|
if !set_clipboard_content(text) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
std::thread::sleep(std::time::Duration::from_millis(CLIPBOARD_SYNC_DELAY_MS));
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Check if a character is ASCII printable (0x20-0x7E).
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[inline]
|
||||||
|
pub(super) fn is_ascii_printable(c: char) -> bool {
|
||||||
|
c as u32 >= 0x20 && c as u32 <= 0x7E
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Input a single character via clipboard + Shift+Insert in server process.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[inline]
|
||||||
|
fn input_char_via_clipboard_server(en: &mut Enigo, chr: char) {
|
||||||
|
input_text_via_clipboard_server(en, &chr.to_string());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Input text via clipboard + Shift+Insert in server process.
|
||||||
|
/// Shift+Insert is more universal than Ctrl+V, works in both GUI apps and terminals.
|
||||||
|
///
|
||||||
|
/// Note: Clipboard content is NOT restored after paste - see `set_clipboard_for_paste_sync` for rationale.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
fn input_text_via_clipboard_server(en: &mut Enigo, text: &str) {
|
||||||
|
if text.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if !set_clipboard_for_paste_sync(text) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use ENIGO's custom_keyboard directly to avoid creating new IPC connections
|
||||||
|
// which would cause excessive logging and keyboard device creation/destruction
|
||||||
|
if en.key_down(Key::Shift).is_err() {
|
||||||
|
log::error!("input_text_via_clipboard_server: failed to press Shift, skipping paste");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if en.key_down(Key::Raw(XKB_KEY_INSERT)).is_err() {
|
||||||
|
log::error!("input_text_via_clipboard_server: failed to press Insert, releasing Shift");
|
||||||
|
en.key_up(Key::Shift);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
en.key_up(Key::Raw(XKB_KEY_INSERT));
|
||||||
|
en.key_up(Key::Shift);
|
||||||
|
|
||||||
|
// Brief delay to allow the target application to process the paste event.
|
||||||
|
// Empirical value — no reliable synchronization mechanism exists on Wayland.
|
||||||
|
std::thread::sleep(std::time::Duration::from_millis(20));
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
fn release_keys(en: &mut Enigo, to_release: &Vec<Key>) {
|
fn release_keys(en: &mut Enigo, to_release: &Vec<Key>) {
|
||||||
for key in to_release {
|
for key in to_release {
|
||||||
@@ -1621,6 +1770,64 @@ fn is_function_key(ck: &EnumOrUnknown<ControlKey>) -> bool {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Check if any hotkey modifier (Ctrl/Alt/Meta) is currently pressed.
|
||||||
|
/// Used to detect hotkey combinations like Ctrl+C, Alt+Tab, etc.
|
||||||
|
///
|
||||||
|
/// Note: Shift is intentionally NOT checked here. Shift+character produces a different
|
||||||
|
/// character (e.g., Shift+a → 'A'), which is normal text input, not a hotkey.
|
||||||
|
/// Shift is only relevant as a hotkey modifier when combined with Ctrl/Alt/Meta
|
||||||
|
/// (e.g., Ctrl+Shift+Z), in which case this function already returns true via Ctrl.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[inline]
|
||||||
|
fn is_hotkey_modifier_pressed(en: &mut Enigo) -> bool {
|
||||||
|
get_modifier_state(Key::Control, en)
|
||||||
|
|| get_modifier_state(Key::RightControl, en)
|
||||||
|
|| get_modifier_state(Key::Alt, en)
|
||||||
|
|| get_modifier_state(Key::RightAlt, en)
|
||||||
|
|| get_modifier_state(Key::Meta, en)
|
||||||
|
|| get_modifier_state(Key::RWin, en)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Release Shift keys before character input in Legacy/Translate mode.
|
||||||
|
/// In these modes, the character has already been converted by the client,
|
||||||
|
/// so we should input it directly without Shift modifier affecting the result.
|
||||||
|
///
|
||||||
|
/// Note: Does NOT release Shift if hotkey modifiers (Ctrl/Alt/Meta) are pressed,
|
||||||
|
/// to preserve combinations like Ctrl+Shift+Z.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
fn release_shift_for_char_input(en: &mut Enigo) {
|
||||||
|
// Don't release Shift if hotkey modifiers (Ctrl/Alt/Meta) are pressed.
|
||||||
|
// This preserves combinations like Ctrl+Shift+Z.
|
||||||
|
if is_hotkey_modifier_pressed(en) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// In translate mode, the client has already converted the keystroke to a character
|
||||||
|
// (e.g., Shift+a → 'A'). We release Shift here so the server inputs the character
|
||||||
|
// directly without Shift affecting the result.
|
||||||
|
//
|
||||||
|
// Shift is intentionally NOT restored after input — the client will send an explicit
|
||||||
|
// Shift key_up event when the user physically releases Shift. Restoring it here would
|
||||||
|
// cause a brief Shift re-press that could interfere with the next input event.
|
||||||
|
|
||||||
|
let is_x11 = crate::platform::linux::is_x11();
|
||||||
|
|
||||||
|
if get_modifier_state(Key::Shift, en) {
|
||||||
|
if !is_x11 {
|
||||||
|
en.key_up(Key::Shift);
|
||||||
|
} else {
|
||||||
|
simulate_(&EventType::KeyRelease(RdevKey::ShiftLeft));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if get_modifier_state(Key::RightShift, en) {
|
||||||
|
if !is_x11 {
|
||||||
|
en.key_up(Key::RightShift);
|
||||||
|
} else {
|
||||||
|
simulate_(&EventType::KeyRelease(RdevKey::ShiftRight));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn legacy_keyboard_mode(evt: &KeyEvent) {
|
fn legacy_keyboard_mode(evt: &KeyEvent) {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
crate::platform::windows::try_change_desktop();
|
crate::platform::windows::try_change_desktop();
|
||||||
@@ -1640,11 +1847,24 @@ fn legacy_keyboard_mode(evt: &KeyEvent) {
|
|||||||
process_control_key(&mut en, &ck, down)
|
process_control_key(&mut en, &ck, down)
|
||||||
}
|
}
|
||||||
Some(key_event::Union::Chr(chr)) => {
|
Some(key_event::Union::Chr(chr)) => {
|
||||||
|
// For character input in Legacy mode, we need to release Shift first.
|
||||||
|
// The character has already been converted by the client, so we should
|
||||||
|
// input it directly without Shift modifier affecting the result.
|
||||||
|
// Only Ctrl/Alt/Meta should be kept for hotkeys like Ctrl+C.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
release_shift_for_char_input(&mut en);
|
||||||
|
|
||||||
let record_key = chr as u64 + KEY_CHAR_START;
|
let record_key = chr as u64 + KEY_CHAR_START;
|
||||||
record_pressed_key(KeysDown::EnigoKey(record_key), down);
|
record_pressed_key(KeysDown::EnigoKey(record_key), down);
|
||||||
process_chr(&mut en, chr, down)
|
process_chr(&mut en, chr, down)
|
||||||
}
|
}
|
||||||
Some(key_event::Union::Unicode(chr)) => process_unicode(&mut en, chr),
|
Some(key_event::Union::Unicode(chr)) => {
|
||||||
|
// Same as Chr: release Shift for Unicode input
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
release_shift_for_char_input(&mut en);
|
||||||
|
|
||||||
|
process_unicode(&mut en, chr)
|
||||||
|
}
|
||||||
Some(key_event::Union::Seq(ref seq)) => process_seq(&mut en, seq),
|
Some(key_event::Union::Seq(ref seq)) => process_seq(&mut en, seq),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
@@ -1665,6 +1885,51 @@ fn translate_process_code(code: u32, down: bool) {
|
|||||||
fn translate_keyboard_mode(evt: &KeyEvent) {
|
fn translate_keyboard_mode(evt: &KeyEvent) {
|
||||||
match &evt.union {
|
match &evt.union {
|
||||||
Some(key_event::Union::Seq(seq)) => {
|
Some(key_event::Union::Seq(seq)) => {
|
||||||
|
// On Wayland, handle character input directly in this (--server) process using clipboard.
|
||||||
|
// This function runs in the --server process (logged-in user session), which has
|
||||||
|
// WAYLAND_DISPLAY and XDG_RUNTIME_DIR — so clipboard operations work here.
|
||||||
|
//
|
||||||
|
// Why not let it go through uinput IPC:
|
||||||
|
// 1. For uinput mode: the uinput service thread runs in the --service (root) process,
|
||||||
|
// which typically lacks user session environment. Clipboard operations there are
|
||||||
|
// unreliable. Handling clipboard here avoids that issue.
|
||||||
|
// 2. For RDP input mode: Portal's notify_keyboard_keysym API interprets keysyms
|
||||||
|
// based on its internal modifier state, which may not match our released state.
|
||||||
|
// Using clipboard bypasses this issue entirely.
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
if !crate::platform::linux::is_x11() {
|
||||||
|
let mut en = ENIGO.lock().unwrap();
|
||||||
|
|
||||||
|
// Check if this is a hotkey (Ctrl/Alt/Meta pressed)
|
||||||
|
// For hotkeys, we send character-based key events via Enigo instead of
|
||||||
|
// using the clipboard. This relies on the local keyboard layout for
|
||||||
|
// mapping characters to physical keys.
|
||||||
|
// This assumes client and server use the same keyboard layout (common case).
|
||||||
|
// Note: For non-Latin keyboards (e.g., Arabic), hotkeys may not work
|
||||||
|
// correctly if the character cannot be mapped to a key via KEY_MAP_LAYOUT.
|
||||||
|
// This is a known limitation - most common hotkeys (Ctrl+A/C/V/Z) use Latin
|
||||||
|
// characters which are mappable on most keyboard layouts.
|
||||||
|
if is_hotkey_modifier_pressed(&mut en) {
|
||||||
|
// For hotkeys, send character-based key events via Enigo.
|
||||||
|
// This relies on the local keyboard layout mapping (KEY_MAP_LAYOUT).
|
||||||
|
for chr in seq.chars() {
|
||||||
|
if !is_ascii_printable(chr) {
|
||||||
|
log::warn!(
|
||||||
|
"Hotkey with non-ASCII character may not work correctly on non-Latin keyboard layouts"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
en.key_click(Key::Layout(chr));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Normal text input: release Shift and use clipboard
|
||||||
|
release_shift_for_char_input(&mut en);
|
||||||
|
|
||||||
|
input_text_via_clipboard_server(&mut en, seq);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Fr -> US
|
// Fr -> US
|
||||||
// client: Shift + & => 1(send to remote)
|
// client: Shift + & => 1(send to remote)
|
||||||
// remote: Shift + 1 => !
|
// remote: Shift + 1 => !
|
||||||
@@ -1682,11 +1947,16 @@ fn translate_keyboard_mode(evt: &KeyEvent) {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
let simulate_win_hot_key = false;
|
let simulate_win_hot_key = false;
|
||||||
if !simulate_win_hot_key {
|
if !simulate_win_hot_key {
|
||||||
if get_modifier_state(Key::Shift, &mut en) {
|
#[cfg(target_os = "linux")]
|
||||||
simulate_(&EventType::KeyRelease(RdevKey::ShiftLeft));
|
release_shift_for_char_input(&mut en);
|
||||||
}
|
#[cfg(target_os = "windows")]
|
||||||
if get_modifier_state(Key::RightShift, &mut en) {
|
{
|
||||||
simulate_(&EventType::KeyRelease(RdevKey::ShiftRight));
|
if get_modifier_state(Key::Shift, &mut en) {
|
||||||
|
simulate_(&EventType::KeyRelease(RdevKey::ShiftLeft));
|
||||||
|
}
|
||||||
|
if get_modifier_state(Key::RightShift, &mut en) {
|
||||||
|
simulate_(&EventType::KeyRelease(RdevKey::ShiftRight));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for chr in seq.chars() {
|
for chr in seq.chars() {
|
||||||
@@ -1706,7 +1976,16 @@ fn translate_keyboard_mode(evt: &KeyEvent) {
|
|||||||
Some(key_event::Union::Chr(..)) => {
|
Some(key_event::Union::Chr(..)) => {
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
translate_process_code(evt.chr(), evt.down);
|
translate_process_code(evt.chr(), evt.down);
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(target_os = "linux")]
|
||||||
|
{
|
||||||
|
if !crate::platform::linux::is_x11() {
|
||||||
|
// Wayland: use uinput to send raw keycode
|
||||||
|
wayland_send_raw_key(evt.chr() as u16, evt.down);
|
||||||
|
} else {
|
||||||
|
sim_rdev_rawkey_position(evt.chr() as _, evt.down);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
sim_rdev_rawkey_position(evt.chr() as _, evt.down);
|
sim_rdev_rawkey_position(evt.chr() as _, evt.down);
|
||||||
}
|
}
|
||||||
Some(key_event::Union::Unicode(..)) => {
|
Some(key_event::Union::Unicode(..)) => {
|
||||||
@@ -1717,7 +1996,11 @@ fn translate_keyboard_mode(evt: &KeyEvent) {
|
|||||||
simulate_win2win_hotkey(*code, evt.down);
|
simulate_win2win_hotkey(*code, evt.down);
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
log::debug!("Unreachable. Unexpected key event {:?}", &evt);
|
log::debug!(
|
||||||
|
"Unreachable. Unexpected key event (mode={:?}, down={:?})",
|
||||||
|
&evt.mode,
|
||||||
|
&evt.down
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
use crate::uinput::service::map_key;
|
use super::input_service::set_clipboard_for_paste_sync;
|
||||||
|
use crate::uinput::service::{can_input_via_keysym, char_to_keysym, map_key};
|
||||||
use dbus::{blocking::SyncConnection, Path};
|
use dbus::{blocking::SyncConnection, Path};
|
||||||
use enigo::{Key, KeyboardControllable, MouseButton, MouseControllable};
|
use enigo::{Key, KeyboardControllable, MouseButton, MouseControllable};
|
||||||
use hbb_common::ResultType;
|
use hbb_common::{log, ResultType};
|
||||||
use scrap::wayland::pipewire::{get_portal, PwStreamInfo};
|
use scrap::wayland::pipewire::{get_portal, PwStreamInfo};
|
||||||
use scrap::wayland::remote_desktop_portal::OrgFreedesktopPortalRemoteDesktop as remote_desktop_portal;
|
use scrap::wayland::remote_desktop_portal::OrgFreedesktopPortalRemoteDesktop as remote_desktop_portal;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
@@ -19,14 +20,74 @@ pub mod client {
|
|||||||
const PRESSED_DOWN_STATE: u32 = 1;
|
const PRESSED_DOWN_STATE: u32 = 1;
|
||||||
const PRESSED_UP_STATE: u32 = 0;
|
const PRESSED_UP_STATE: u32 = 0;
|
||||||
|
|
||||||
|
/// Modifier key state tracking for RDP input.
|
||||||
|
/// Portal API doesn't provide a way to query key state, so we track it ourselves.
|
||||||
|
#[derive(Default)]
|
||||||
|
struct ModifierState {
|
||||||
|
shift_left: bool,
|
||||||
|
shift_right: bool,
|
||||||
|
ctrl_left: bool,
|
||||||
|
ctrl_right: bool,
|
||||||
|
alt_left: bool,
|
||||||
|
alt_right: bool,
|
||||||
|
meta_left: bool,
|
||||||
|
meta_right: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ModifierState {
|
||||||
|
fn update(&mut self, key: &Key, down: bool) {
|
||||||
|
match key {
|
||||||
|
Key::Shift => self.shift_left = down,
|
||||||
|
Key::RightShift => self.shift_right = down,
|
||||||
|
Key::Control => self.ctrl_left = down,
|
||||||
|
Key::RightControl => self.ctrl_right = down,
|
||||||
|
Key::Alt => self.alt_left = down,
|
||||||
|
Key::RightAlt => self.alt_right = down,
|
||||||
|
Key::Meta | Key::Super | Key::Windows | Key::Command => self.meta_left = down,
|
||||||
|
Key::RWin => self.meta_right = down,
|
||||||
|
// Handle raw keycodes for modifier keys (Linux evdev codes + 8)
|
||||||
|
// In translate mode, modifier keys may be sent as Chr events with raw keycodes.
|
||||||
|
// The +8 offset converts evdev codes to X11/XKB keycodes.
|
||||||
|
Key::Raw(code) => {
|
||||||
|
const EVDEV_OFFSET: u16 = 8;
|
||||||
|
const KEY_LEFTSHIFT: u16 = evdev::Key::KEY_LEFTSHIFT.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_RIGHTSHIFT: u16 = evdev::Key::KEY_RIGHTSHIFT.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_LEFTCTRL: u16 = evdev::Key::KEY_LEFTCTRL.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_RIGHTCTRL: u16 = evdev::Key::KEY_RIGHTCTRL.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_LEFTALT: u16 = evdev::Key::KEY_LEFTALT.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_RIGHTALT: u16 = evdev::Key::KEY_RIGHTALT.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_LEFTMETA: u16 = evdev::Key::KEY_LEFTMETA.code() + EVDEV_OFFSET;
|
||||||
|
const KEY_RIGHTMETA: u16 = evdev::Key::KEY_RIGHTMETA.code() + EVDEV_OFFSET;
|
||||||
|
match *code {
|
||||||
|
KEY_LEFTSHIFT => self.shift_left = down,
|
||||||
|
KEY_RIGHTSHIFT => self.shift_right = down,
|
||||||
|
KEY_LEFTCTRL => self.ctrl_left = down,
|
||||||
|
KEY_RIGHTCTRL => self.ctrl_right = down,
|
||||||
|
KEY_LEFTALT => self.alt_left = down,
|
||||||
|
KEY_RIGHTALT => self.alt_right = down,
|
||||||
|
KEY_LEFTMETA => self.meta_left = down,
|
||||||
|
KEY_RIGHTMETA => self.meta_right = down,
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub struct RdpInputKeyboard {
|
pub struct RdpInputKeyboard {
|
||||||
conn: Arc<SyncConnection>,
|
conn: Arc<SyncConnection>,
|
||||||
session: Path<'static>,
|
session: Path<'static>,
|
||||||
|
modifier_state: ModifierState,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RdpInputKeyboard {
|
impl RdpInputKeyboard {
|
||||||
pub fn new(conn: Arc<SyncConnection>, session: Path<'static>) -> ResultType<Self> {
|
pub fn new(conn: Arc<SyncConnection>, session: Path<'static>) -> ResultType<Self> {
|
||||||
Ok(Self { conn, session })
|
Ok(Self {
|
||||||
|
conn,
|
||||||
|
session,
|
||||||
|
modifier_state: ModifierState::default(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,29 +100,192 @@ pub mod client {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_key_state(&mut self, _: Key) -> bool {
|
fn get_key_state(&mut self, key: Key) -> bool {
|
||||||
// no api for this
|
// Use tracked modifier state for supported keys
|
||||||
false
|
match key {
|
||||||
|
Key::Shift => self.modifier_state.shift_left,
|
||||||
|
Key::RightShift => self.modifier_state.shift_right,
|
||||||
|
Key::Control => self.modifier_state.ctrl_left,
|
||||||
|
Key::RightControl => self.modifier_state.ctrl_right,
|
||||||
|
Key::Alt => self.modifier_state.alt_left,
|
||||||
|
Key::RightAlt => self.modifier_state.alt_right,
|
||||||
|
Key::Meta | Key::Super | Key::Windows | Key::Command => {
|
||||||
|
self.modifier_state.meta_left
|
||||||
|
}
|
||||||
|
Key::RWin => self.modifier_state.meta_right,
|
||||||
|
_ => false,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn key_sequence(&mut self, s: &str) {
|
fn key_sequence(&mut self, s: &str) {
|
||||||
for c in s.chars() {
|
for c in s.chars() {
|
||||||
let key = Key::Layout(c);
|
let keysym = char_to_keysym(c);
|
||||||
let _ = handle_key(true, key, self.conn.clone(), &self.session);
|
// ASCII characters: use keysym
|
||||||
let _ = handle_key(false, key, self.conn.clone(), &self.session);
|
if can_input_via_keysym(c, keysym) {
|
||||||
|
if let Err(e) = send_keysym(keysym, true, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to send keysym down: {:?}", e);
|
||||||
|
}
|
||||||
|
if let Err(e) = send_keysym(keysym, false, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to send keysym up: {:?}", e);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Non-ASCII: use clipboard
|
||||||
|
input_text_via_clipboard(&c.to_string(), self.conn.clone(), &self.session);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn key_down(&mut self, key: Key) -> enigo::ResultType {
|
fn key_down(&mut self, key: Key) -> enigo::ResultType {
|
||||||
handle_key(true, key, self.conn.clone(), &self.session)?;
|
if let Key::Layout(chr) = key {
|
||||||
|
let keysym = char_to_keysym(chr);
|
||||||
|
// ASCII characters: use keysym
|
||||||
|
if can_input_via_keysym(chr, keysym) {
|
||||||
|
send_keysym(keysym, true, self.conn.clone(), &self.session)?;
|
||||||
|
} else {
|
||||||
|
// Non-ASCII: use clipboard (complete key press in key_down)
|
||||||
|
input_text_via_clipboard(&chr.to_string(), self.conn.clone(), &self.session);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
handle_key(true, key.clone(), self.conn.clone(), &self.session)?;
|
||||||
|
// Update modifier state only after successful send —
|
||||||
|
// if handle_key fails, we don't want stale "pressed" state
|
||||||
|
// affecting subsequent key event decisions.
|
||||||
|
self.modifier_state.update(&key, true);
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn key_up(&mut self, key: Key) {
|
fn key_up(&mut self, key: Key) {
|
||||||
let _ = handle_key(false, key, self.conn.clone(), &self.session);
|
// Intentionally asymmetric with key_down: update state BEFORE sending.
|
||||||
|
// On release, we always mark as released even if the send fails below,
|
||||||
|
// to avoid permanently stuck-modifier state in our tracker. The trade-off
|
||||||
|
// (tracker says "released" while OS may still have it pressed) is acceptable
|
||||||
|
// because such failures are rare and subsequent events will resynchronize.
|
||||||
|
self.modifier_state.update(&key, false);
|
||||||
|
|
||||||
|
if let Key::Layout(chr) = key {
|
||||||
|
// ASCII characters: send keysym up if we also sent it on key_down
|
||||||
|
let keysym = char_to_keysym(chr);
|
||||||
|
if can_input_via_keysym(chr, keysym) {
|
||||||
|
if let Err(e) = send_keysym(keysym, false, self.conn.clone(), &self.session)
|
||||||
|
{
|
||||||
|
log::error!("Failed to send keysym up: {:?}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Non-ASCII: already handled completely in key_down via clipboard paste,
|
||||||
|
// no corresponding release needed (clipboard paste is an atomic operation)
|
||||||
|
} else {
|
||||||
|
if let Err(e) = handle_key(false, key, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to handle key up: {:?}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn key_click(&mut self, key: Key) {
|
fn key_click(&mut self, key: Key) {
|
||||||
let _ = handle_key(true, key, self.conn.clone(), &self.session);
|
if let Key::Layout(chr) = key {
|
||||||
let _ = handle_key(false, key, self.conn.clone(), &self.session);
|
let keysym = char_to_keysym(chr);
|
||||||
|
// ASCII characters: use keysym
|
||||||
|
if can_input_via_keysym(chr, keysym) {
|
||||||
|
if let Err(e) = send_keysym(keysym, true, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to send keysym down: {:?}", e);
|
||||||
|
}
|
||||||
|
if let Err(e) = send_keysym(keysym, false, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to send keysym up: {:?}", e);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Non-ASCII: use clipboard
|
||||||
|
input_text_via_clipboard(&chr.to_string(), self.conn.clone(), &self.session);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if let Err(e) = handle_key(true, key.clone(), self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to handle key down: {:?}", e);
|
||||||
|
} else {
|
||||||
|
// Only mark modifier as pressed if key-down was actually delivered
|
||||||
|
self.modifier_state.update(&key, true);
|
||||||
|
}
|
||||||
|
// Always mark as released to avoid stuck-modifier state
|
||||||
|
self.modifier_state.update(&key, false);
|
||||||
|
if let Err(e) = handle_key(false, key, self.conn.clone(), &self.session) {
|
||||||
|
log::error!("Failed to handle key up: {:?}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Input text via clipboard + Shift+Insert.
|
||||||
|
/// Shift+Insert is more universal than Ctrl+V, works in both GUI apps and terminals.
|
||||||
|
///
|
||||||
|
/// Note: Clipboard content is NOT restored after paste - see `set_clipboard_for_paste_sync` for rationale.
|
||||||
|
fn input_text_via_clipboard(text: &str, conn: Arc<SyncConnection>, session: &Path<'static>) {
|
||||||
|
if text.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if !set_clipboard_for_paste_sync(text) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let portal = get_portal(&conn);
|
||||||
|
let shift_keycode = evdev::Key::KEY_LEFTSHIFT.code() as i32;
|
||||||
|
let insert_keycode = evdev::Key::KEY_INSERT.code() as i32;
|
||||||
|
|
||||||
|
// Send Shift+Insert (universal paste shortcut)
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_DOWN_STATE,
|
||||||
|
) {
|
||||||
|
log::error!("input_text_via_clipboard: failed to press Shift: {:?}", e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Press Insert
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
insert_keycode,
|
||||||
|
PRESSED_DOWN_STATE,
|
||||||
|
) {
|
||||||
|
log::error!("input_text_via_clipboard: failed to press Insert: {:?}", e);
|
||||||
|
// Still try to release Shift.
|
||||||
|
// Note: clipboard has already been set by set_clipboard_for_paste_sync but paste
|
||||||
|
// never happened. We don't attempt to restore the previous clipboard contents
|
||||||
|
// because reading the clipboard on Wayland requires focus/permission.
|
||||||
|
let _ = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Release Insert
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
insert_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::error!(
|
||||||
|
"input_text_via_clipboard: failed to release Insert: {:?}",
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Release Shift
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::error!("input_text_via_clipboard: failed to release Shift: {:?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,6 +420,39 @@ pub mod client {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Send a keysym via RemoteDesktop portal.
|
||||||
|
fn send_keysym(
|
||||||
|
keysym: i32,
|
||||||
|
down: bool,
|
||||||
|
conn: Arc<SyncConnection>,
|
||||||
|
session: &Path<'static>,
|
||||||
|
) -> ResultType<()> {
|
||||||
|
let state: u32 = if down {
|
||||||
|
PRESSED_DOWN_STATE
|
||||||
|
} else {
|
||||||
|
PRESSED_UP_STATE
|
||||||
|
};
|
||||||
|
let portal = get_portal(&conn);
|
||||||
|
log::trace!(
|
||||||
|
"send_keysym: calling notify_keyboard_keysym, keysym={:#x}, state={}",
|
||||||
|
keysym,
|
||||||
|
state
|
||||||
|
);
|
||||||
|
match remote_desktop_portal::notify_keyboard_keysym(
|
||||||
|
&portal,
|
||||||
|
session,
|
||||||
|
HashMap::new(),
|
||||||
|
keysym,
|
||||||
|
state,
|
||||||
|
) {
|
||||||
|
Ok(_) => {
|
||||||
|
log::trace!("send_keysym: notify_keyboard_keysym succeeded");
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
Err(e) => Err(e.into()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn get_raw_evdev_keycode(key: u16) -> i32 {
|
fn get_raw_evdev_keycode(key: u16) -> i32 {
|
||||||
// 8 is the offset between xkb and evdev
|
// 8 is the offset between xkb and evdev
|
||||||
let mut key = key as i32 - 8;
|
let mut key = key as i32 - 8;
|
||||||
@@ -231,22 +488,86 @@ pub mod client {
|
|||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
if let Ok((key, is_shift)) = map_key(&key) {
|
if let Ok((key, is_shift)) = map_key(&key) {
|
||||||
if is_shift {
|
let shift_keycode = evdev::Key::KEY_LEFTSHIFT.code() as i32;
|
||||||
remote_desktop_portal::notify_keyboard_keycode(
|
if down {
|
||||||
|
// Press: Shift down first, then key down
|
||||||
|
if is_shift {
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
&session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
state,
|
||||||
|
) {
|
||||||
|
log::error!("handle_key: failed to press Shift: {:?}", e);
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
&portal,
|
&portal,
|
||||||
&session,
|
&session,
|
||||||
HashMap::new(),
|
HashMap::new(),
|
||||||
evdev::Key::KEY_LEFTSHIFT.code() as i32,
|
key.code() as i32,
|
||||||
state,
|
state,
|
||||||
)?;
|
) {
|
||||||
|
log::error!("handle_key: failed to press key: {:?}", e);
|
||||||
|
// Best-effort: release Shift if it was pressed
|
||||||
|
if is_shift {
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
&session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::warn!(
|
||||||
|
"handle_key: best-effort Shift release also failed: {:?}",
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Release: key up first, then Shift up
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
&session,
|
||||||
|
HashMap::new(),
|
||||||
|
key.code() as i32,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::error!("handle_key: failed to release key: {:?}", e);
|
||||||
|
// Best-effort: still try to release Shift
|
||||||
|
if is_shift {
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
&session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::warn!(
|
||||||
|
"handle_key: best-effort Shift release also failed: {:?}",
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
if is_shift {
|
||||||
|
if let Err(e) = remote_desktop_portal::notify_keyboard_keycode(
|
||||||
|
&portal,
|
||||||
|
&session,
|
||||||
|
HashMap::new(),
|
||||||
|
shift_keycode,
|
||||||
|
PRESSED_UP_STATE,
|
||||||
|
) {
|
||||||
|
log::error!("handle_key: failed to release Shift: {:?}", e);
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
remote_desktop_portal::notify_keyboard_keycode(
|
|
||||||
&portal,
|
|
||||||
&session,
|
|
||||||
HashMap::new(),
|
|
||||||
key.code() as i32,
|
|
||||||
state,
|
|
||||||
)?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,13 @@ pub mod client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn key_sequence(&mut self, sequence: &str) {
|
fn key_sequence(&mut self, sequence: &str) {
|
||||||
|
// Sequence events are normally handled in the --server process before reaching here.
|
||||||
|
// Forward via IPC as a fallback — input_text_wayland can still handle ASCII chars
|
||||||
|
// via keysym/uinput, though non-ASCII will be skipped (no clipboard in --service).
|
||||||
|
log::debug!(
|
||||||
|
"UInputKeyboard::key_sequence called (len={})",
|
||||||
|
sequence.len()
|
||||||
|
);
|
||||||
allow_err!(self.send(Data::Keyboard(DataKeyboard::Sequence(sequence.to_string()))));
|
allow_err!(self.send(Data::Keyboard(DataKeyboard::Sequence(sequence.to_string()))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,6 +185,9 @@ pub mod client {
|
|||||||
pub mod service {
|
pub mod service {
|
||||||
use super::*;
|
use super::*;
|
||||||
use hbb_common::lazy_static;
|
use hbb_common::lazy_static;
|
||||||
|
use scrap::wayland::{
|
||||||
|
pipewire::RDP_SESSION_INFO, remote_desktop_portal::OrgFreedesktopPortalRemoteDesktop,
|
||||||
|
};
|
||||||
use std::{collections::HashMap, sync::Mutex};
|
use std::{collections::HashMap, sync::Mutex};
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
@@ -309,6 +319,9 @@ pub mod service {
|
|||||||
('/', (evdev::Key::KEY_SLASH, false)),
|
('/', (evdev::Key::KEY_SLASH, false)),
|
||||||
(';', (evdev::Key::KEY_SEMICOLON, false)),
|
(';', (evdev::Key::KEY_SEMICOLON, false)),
|
||||||
('\'', (evdev::Key::KEY_APOSTROPHE, false)),
|
('\'', (evdev::Key::KEY_APOSTROPHE, false)),
|
||||||
|
// Space is intentionally in both KEY_MAP_LAYOUT (char-to-evdev for text input)
|
||||||
|
// and KEY_MAP (Key::Space for key events). Both maps serve different lookup paths.
|
||||||
|
(' ', (evdev::Key::KEY_SPACE, false)),
|
||||||
|
|
||||||
// Shift + key
|
// Shift + key
|
||||||
('A', (evdev::Key::KEY_A, true)),
|
('A', (evdev::Key::KEY_A, true)),
|
||||||
@@ -364,6 +377,155 @@ pub mod service {
|
|||||||
static ref RESOLUTION: Mutex<((i32, i32), (i32, i32))> = Mutex::new(((0, 0), (0, 0)));
|
static ref RESOLUTION: Mutex<((i32, i32), (i32, i32))> = Mutex::new(((0, 0), (0, 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Input text on Wayland using layout-independent methods.
|
||||||
|
/// ASCII chars (0x20-0x7E): Portal keysym or uinput fallback
|
||||||
|
/// Non-ASCII chars: skipped — this runs in the --service (root) process where clipboard
|
||||||
|
/// operations are unreliable (typically no user session environment).
|
||||||
|
/// Non-ASCII input is normally handled by the --server process via input_text_via_clipboard_server.
|
||||||
|
fn input_text_wayland(text: &str, keyboard: &mut VirtualDevice) {
|
||||||
|
let portal_info = {
|
||||||
|
let session_info = RDP_SESSION_INFO.lock().unwrap();
|
||||||
|
session_info
|
||||||
|
.as_ref()
|
||||||
|
.map(|info| (info.conn.clone(), info.session.clone()))
|
||||||
|
};
|
||||||
|
|
||||||
|
for c in text.chars() {
|
||||||
|
let keysym = char_to_keysym(c);
|
||||||
|
if can_input_via_keysym(c, keysym) {
|
||||||
|
// Try Portal first — down+up on the same channel
|
||||||
|
if let Some((ref conn, ref session)) = portal_info {
|
||||||
|
let portal = scrap::wayland::pipewire::get_portal(conn);
|
||||||
|
if portal
|
||||||
|
.notify_keyboard_keysym(session, HashMap::new(), keysym, 1)
|
||||||
|
.is_ok()
|
||||||
|
{
|
||||||
|
if let Err(e) =
|
||||||
|
portal.notify_keyboard_keysym(session, HashMap::new(), keysym, 0)
|
||||||
|
{
|
||||||
|
log::warn!(
|
||||||
|
"input_text_wayland: portal key-up failed for keysym {:#x}: {:?}",
|
||||||
|
keysym,
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Portal unavailable or failed, fallback to uinput (down+up together)
|
||||||
|
let key = enigo::Key::Layout(c);
|
||||||
|
if let Ok((evdev_key, is_shift)) = map_key(&key) {
|
||||||
|
let mut shift_pressed = false;
|
||||||
|
if is_shift {
|
||||||
|
let shift_down =
|
||||||
|
InputEvent::new(EventType::KEY, evdev::Key::KEY_LEFTSHIFT.code(), 1);
|
||||||
|
if keyboard.emit(&[shift_down]).is_ok() {
|
||||||
|
shift_pressed = true;
|
||||||
|
} else {
|
||||||
|
log::warn!("input_text_wayland: failed to press Shift for '{}'", c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let key_down = InputEvent::new(EventType::KEY, evdev_key.code(), 1);
|
||||||
|
let key_up = InputEvent::new(EventType::KEY, evdev_key.code(), 0);
|
||||||
|
allow_err!(keyboard.emit(&[key_down, key_up]));
|
||||||
|
if shift_pressed {
|
||||||
|
let shift_up =
|
||||||
|
InputEvent::new(EventType::KEY, evdev::Key::KEY_LEFTSHIFT.code(), 0);
|
||||||
|
allow_err!(keyboard.emit(&[shift_up]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
log::debug!("Skipping non-ASCII character in uinput service (no clipboard access)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Send a single key down or up event for a Layout character.
|
||||||
|
/// Used by KeyDown/KeyUp to maintain correct press/release semantics.
|
||||||
|
/// `down`: true for key press, false for key release.
|
||||||
|
fn input_char_wayland_key_event(chr: char, down: bool, keyboard: &mut VirtualDevice) {
|
||||||
|
let keysym = char_to_keysym(chr);
|
||||||
|
let portal_state: u32 = if down { 1 } else { 0 };
|
||||||
|
|
||||||
|
if can_input_via_keysym(chr, keysym) {
|
||||||
|
let portal_info = {
|
||||||
|
let session_info = RDP_SESSION_INFO.lock().unwrap();
|
||||||
|
session_info
|
||||||
|
.as_ref()
|
||||||
|
.map(|info| (info.conn.clone(), info.session.clone()))
|
||||||
|
};
|
||||||
|
if let Some((ref conn, ref session)) = portal_info {
|
||||||
|
let portal = scrap::wayland::pipewire::get_portal(conn);
|
||||||
|
if portal
|
||||||
|
.notify_keyboard_keysym(session, HashMap::new(), keysym, portal_state)
|
||||||
|
.is_ok()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Portal unavailable or failed, fallback to uinput
|
||||||
|
let key = enigo::Key::Layout(chr);
|
||||||
|
if let Ok((evdev_key, is_shift)) = map_key(&key) {
|
||||||
|
if down {
|
||||||
|
// Press: Shift↓ (if needed) → Key↓
|
||||||
|
if is_shift {
|
||||||
|
let shift_down =
|
||||||
|
InputEvent::new(EventType::KEY, evdev::Key::KEY_LEFTSHIFT.code(), 1);
|
||||||
|
if let Err(e) = keyboard.emit(&[shift_down]) {
|
||||||
|
log::warn!("input_char_wayland_key_event: failed to press Shift for '{}': {:?}", chr, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let key_down = InputEvent::new(EventType::KEY, evdev_key.code(), 1);
|
||||||
|
allow_err!(keyboard.emit(&[key_down]));
|
||||||
|
} else {
|
||||||
|
// Release: Key↑ → Shift↑ (if needed)
|
||||||
|
let key_up = InputEvent::new(EventType::KEY, evdev_key.code(), 0);
|
||||||
|
allow_err!(keyboard.emit(&[key_up]));
|
||||||
|
if is_shift {
|
||||||
|
let shift_up =
|
||||||
|
InputEvent::new(EventType::KEY, evdev::Key::KEY_LEFTSHIFT.code(), 0);
|
||||||
|
if let Err(e) = keyboard.emit(&[shift_up]) {
|
||||||
|
log::warn!("input_char_wayland_key_event: failed to release Shift for '{}': {:?}", chr, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Non-ASCII: no reliable down/up semantics available.
|
||||||
|
// Clipboard paste is atomic and handled elsewhere.
|
||||||
|
log::debug!(
|
||||||
|
"Skipping non-ASCII character key {} in uinput service",
|
||||||
|
if down { "down" } else { "up" }
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Check if character can be input via keysym (ASCII printable with valid keysym).
|
||||||
|
#[inline]
|
||||||
|
pub(crate) fn can_input_via_keysym(c: char, keysym: i32) -> bool {
|
||||||
|
// ASCII printable: 0x20 (space) to 0x7E (tilde)
|
||||||
|
(c as u32 >= 0x20 && c as u32 <= 0x7E) && keysym != 0
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Convert a Unicode character to X11 keysym.
|
||||||
|
pub(crate) fn char_to_keysym(c: char) -> i32 {
|
||||||
|
let codepoint = c as u32;
|
||||||
|
if codepoint == 0 {
|
||||||
|
// Null character has no keysym
|
||||||
|
0
|
||||||
|
} else if (0x20..=0x7E).contains(&codepoint) {
|
||||||
|
// ASCII printable (0x20-0x7E): keysym == Unicode codepoint
|
||||||
|
codepoint as i32
|
||||||
|
} else if (0xA0..=0xFF).contains(&codepoint) {
|
||||||
|
// Latin-1 supplement (0xA0-0xFF): keysym == Unicode codepoint (per X11 keysym spec)
|
||||||
|
codepoint as i32
|
||||||
|
} else {
|
||||||
|
// Everything else (control chars 0x01-0x1F, DEL 0x7F, and all other non-ASCII Unicode):
|
||||||
|
// keysym = 0x01000000 | codepoint (X11 Unicode keysym encoding)
|
||||||
|
(0x0100_0000 | codepoint) as i32
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn create_uinput_keyboard() -> ResultType<VirtualDevice> {
|
fn create_uinput_keyboard() -> ResultType<VirtualDevice> {
|
||||||
// TODO: ensure keys here
|
// TODO: ensure keys here
|
||||||
let mut keys = AttributeSet::<evdev::Key>::new();
|
let mut keys = AttributeSet::<evdev::Key>::new();
|
||||||
@@ -390,13 +552,13 @@ pub mod service {
|
|||||||
|
|
||||||
pub fn map_key(key: &enigo::Key) -> ResultType<(evdev::Key, bool)> {
|
pub fn map_key(key: &enigo::Key) -> ResultType<(evdev::Key, bool)> {
|
||||||
if let Some(k) = KEY_MAP.get(&key) {
|
if let Some(k) = KEY_MAP.get(&key) {
|
||||||
log::trace!("mapkey {:?}, get {:?}", &key, &k);
|
log::trace!("mapkey matched in KEY_MAP, evdev={:?}", &k);
|
||||||
return Ok((k.clone(), false));
|
return Ok((k.clone(), false));
|
||||||
} else {
|
} else {
|
||||||
match key {
|
match key {
|
||||||
enigo::Key::Layout(c) => {
|
enigo::Key::Layout(c) => {
|
||||||
if let Some((k, is_shift)) = KEY_MAP_LAYOUT.get(&c) {
|
if let Some((k, is_shift)) = KEY_MAP_LAYOUT.get(&c) {
|
||||||
log::trace!("mapkey {:?}, get {:?}", &key, k);
|
log::trace!("mapkey Layout matched, evdev={:?}", k);
|
||||||
return Ok((k.clone(), is_shift.clone()));
|
return Ok((k.clone(), is_shift.clone()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -421,41 +583,68 @@ pub mod service {
|
|||||||
keyboard: &mut VirtualDevice,
|
keyboard: &mut VirtualDevice,
|
||||||
data: &DataKeyboard,
|
data: &DataKeyboard,
|
||||||
) {
|
) {
|
||||||
log::trace!("handle_keyboard {:?}", &data);
|
let data_desc = match data {
|
||||||
|
DataKeyboard::Sequence(seq) => format!("Sequence(len={})", seq.len()),
|
||||||
|
DataKeyboard::KeyDown(Key::Layout(_))
|
||||||
|
| DataKeyboard::KeyUp(Key::Layout(_))
|
||||||
|
| DataKeyboard::KeyClick(Key::Layout(_)) => "Layout(<redacted>)".to_string(),
|
||||||
|
_ => format!("{:?}", data),
|
||||||
|
};
|
||||||
|
log::trace!("handle_keyboard received: {}", data_desc);
|
||||||
match data {
|
match data {
|
||||||
DataKeyboard::Sequence(_seq) => {
|
DataKeyboard::Sequence(seq) => {
|
||||||
// ignore
|
// Normally handled by --server process (input_text_via_clipboard_server).
|
||||||
|
// Fallback: input_text_wayland handles ASCII via keysym/uinput;
|
||||||
|
// non-ASCII will be skipped (no clipboard access in --service process).
|
||||||
|
if !seq.is_empty() {
|
||||||
|
input_text_wayland(seq, keyboard);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DataKeyboard::KeyDown(enigo::Key::Raw(code)) => {
|
DataKeyboard::KeyDown(enigo::Key::Raw(code)) => {
|
||||||
let down_event = InputEvent::new(EventType::KEY, *code - 8, 1);
|
if *code < 8 {
|
||||||
allow_err!(keyboard.emit(&[down_event]));
|
log::error!("Invalid Raw keycode {} (must be >= 8 due to XKB offset), skipping", code);
|
||||||
}
|
} else {
|
||||||
DataKeyboard::KeyUp(enigo::Key::Raw(code)) => {
|
let down_event = InputEvent::new(EventType::KEY, *code - 8, 1);
|
||||||
let up_event = InputEvent::new(EventType::KEY, *code - 8, 0);
|
|
||||||
allow_err!(keyboard.emit(&[up_event]));
|
|
||||||
}
|
|
||||||
DataKeyboard::KeyDown(key) => {
|
|
||||||
if let Ok((k, is_shift)) = map_key(key) {
|
|
||||||
if is_shift {
|
|
||||||
let down_event =
|
|
||||||
InputEvent::new(EventType::KEY, evdev::Key::KEY_LEFTSHIFT.code(), 1);
|
|
||||||
allow_err!(keyboard.emit(&[down_event]));
|
|
||||||
}
|
|
||||||
let down_event = InputEvent::new(EventType::KEY, k.code(), 1);
|
|
||||||
allow_err!(keyboard.emit(&[down_event]));
|
allow_err!(keyboard.emit(&[down_event]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DataKeyboard::KeyUp(key) => {
|
DataKeyboard::KeyUp(enigo::Key::Raw(code)) => {
|
||||||
if let Ok((k, _)) = map_key(key) {
|
if *code < 8 {
|
||||||
let up_event = InputEvent::new(EventType::KEY, k.code(), 0);
|
log::error!("Invalid Raw keycode {} (must be >= 8 due to XKB offset), skipping", code);
|
||||||
|
} else {
|
||||||
|
let up_event = InputEvent::new(EventType::KEY, *code - 8, 0);
|
||||||
allow_err!(keyboard.emit(&[up_event]));
|
allow_err!(keyboard.emit(&[up_event]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DataKeyboard::KeyDown(key) => {
|
||||||
|
if let Key::Layout(chr) = key {
|
||||||
|
input_char_wayland_key_event(*chr, true, keyboard);
|
||||||
|
} else {
|
||||||
|
if let Ok((k, _is_shift)) = map_key(key) {
|
||||||
|
let down_event = InputEvent::new(EventType::KEY, k.code(), 1);
|
||||||
|
allow_err!(keyboard.emit(&[down_event]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
DataKeyboard::KeyUp(key) => {
|
||||||
|
if let Key::Layout(chr) = key {
|
||||||
|
input_char_wayland_key_event(*chr, false, keyboard);
|
||||||
|
} else {
|
||||||
|
if let Ok((k, _)) = map_key(key) {
|
||||||
|
let up_event = InputEvent::new(EventType::KEY, k.code(), 0);
|
||||||
|
allow_err!(keyboard.emit(&[up_event]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
DataKeyboard::KeyClick(key) => {
|
DataKeyboard::KeyClick(key) => {
|
||||||
if let Ok((k, _)) = map_key(key) {
|
if let Key::Layout(chr) = key {
|
||||||
let down_event = InputEvent::new(EventType::KEY, k.code(), 1);
|
input_text_wayland(&chr.to_string(), keyboard);
|
||||||
let up_event = InputEvent::new(EventType::KEY, k.code(), 0);
|
} else {
|
||||||
allow_err!(keyboard.emit(&[down_event, up_event]));
|
if let Ok((k, _is_shift)) = map_key(key) {
|
||||||
|
let down_event = InputEvent::new(EventType::KEY, k.code(), 1);
|
||||||
|
let up_event = InputEvent::new(EventType::KEY, k.code(), 0);
|
||||||
|
allow_err!(keyboard.emit(&[down_event, up_event]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DataKeyboard::GetKeyState(key) => {
|
DataKeyboard::GetKeyState(key) => {
|
||||||
@@ -580,9 +769,13 @@ pub mod service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn spawn_keyboard_handler(mut stream: Connection) {
|
fn spawn_keyboard_handler(mut stream: Connection) {
|
||||||
|
log::debug!("spawn_keyboard_handler: new keyboard handler connection");
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let mut keyboard = match create_uinput_keyboard() {
|
let mut keyboard = match create_uinput_keyboard() {
|
||||||
Ok(keyboard) => keyboard,
|
Ok(keyboard) => {
|
||||||
|
log::debug!("UInput keyboard device created successfully");
|
||||||
|
keyboard
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::error!("Failed to create keyboard {}", e);
|
log::error!("Failed to create keyboard {}", e);
|
||||||
return;
|
return;
|
||||||
@@ -602,6 +795,7 @@ pub mod service {
|
|||||||
handle_keyboard(&mut stream, &mut keyboard, &data).await;
|
handle_keyboard(&mut stream, &mut keyboard, &data).await;
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
log::warn!("Unexpected data type in keyboard handler");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -358,6 +358,22 @@ function getUserName() {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getAccountLabelWithHandle() {
|
||||||
|
try {
|
||||||
|
var user = JSON.parse(handler.get_local_option("user_info"));
|
||||||
|
var username = (user.name || '').trim();
|
||||||
|
if (!username) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
var displayName = (user.display_name || '').trim();
|
||||||
|
if (!displayName || displayName == username) {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
return displayName + " (@" + username + ")";
|
||||||
|
} catch(e) {}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
// Shared dialog functions
|
// Shared dialog functions
|
||||||
function open_custom_server_dialog() {
|
function open_custom_server_dialog() {
|
||||||
var configOptions = handler.get_options();
|
var configOptions = handler.get_options();
|
||||||
@@ -493,7 +509,7 @@ class MyIdMenu: Reactor.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderPop() {
|
function renderPop() {
|
||||||
var username = handler.get_local_option("access_token") ? getUserName() : '';
|
var accountLabel = handler.get_local_option("access_token") ? getAccountLabelWithHandle() : '';
|
||||||
return <popup>
|
return <popup>
|
||||||
<menu.context #config-options>
|
<menu.context #config-options>
|
||||||
{!disable_settings && <li #enable-keyboard><span>{svg_checkmark}</span>{translate('Enable keyboard/mouse')}</li>}
|
{!disable_settings && <li #enable-keyboard><span>{svg_checkmark}</span>{translate('Enable keyboard/mouse')}</li>}
|
||||||
@@ -521,8 +537,8 @@ class MyIdMenu: Reactor.Component {
|
|||||||
{!disable_settings && <DirectServer />}
|
{!disable_settings && <DirectServer />}
|
||||||
{!disable_settings && false && handler.using_public_server() && <li #allow-always-relay><span>{svg_checkmark}</span>{translate('Always connect via relay')}</li>}
|
{!disable_settings && false && handler.using_public_server() && <li #allow-always-relay><span>{svg_checkmark}</span>{translate('Always connect via relay')}</li>}
|
||||||
{!disable_change_id && handler.is_ok_change_id() ? <div .separator /> : ""}
|
{!disable_change_id && handler.is_ok_change_id() ? <div .separator /> : ""}
|
||||||
{!disable_account && (username ?
|
{!disable_account && (accountLabel ?
|
||||||
<li #logout>{translate('Logout')} ({username})</li> :
|
<li #logout>{translate('Logout')} ({accountLabel})</li> :
|
||||||
<li #login>{translate('Login')}</li>)}
|
<li #login>{translate('Login')}</li>)}
|
||||||
{!disable_change_id && !disable_settings && handler.is_ok_change_id() && key_confirmed && connect_status > 0 ? <li #change-id>{translate('Change ID')}</li> : ""}
|
{!disable_change_id && !disable_settings && handler.is_ok_change_id() && key_confirmed && connect_status > 0 ? <li #change-id>{translate('Change ID')}</li> : ""}
|
||||||
<div .separator />
|
<div .separator />
|
||||||
@@ -1430,6 +1446,9 @@ checkConnectStatus();
|
|||||||
|
|
||||||
function set_local_user_info(user) {
|
function set_local_user_info(user) {
|
||||||
var user_info = {name: user.name};
|
var user_info = {name: user.name};
|
||||||
|
if (user.display_name) {
|
||||||
|
user_info.display_name = user.display_name;
|
||||||
|
}
|
||||||
if (user.status) {
|
if (user.status) {
|
||||||
user_info.status = user.status;
|
user_info.status = user.status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ fn check_update(manually: bool) -> ResultType<()> {
|
|||||||
if !(manually || config::Config::get_bool_option(config::keys::OPTION_ALLOW_AUTO_UPDATE)) {
|
if !(manually || config::Config::get_bool_option(config::keys::OPTION_ALLOW_AUTO_UPDATE)) {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
if !do_check_software_update().is_ok() {
|
if do_check_software_update().is_err() {
|
||||||
// ignore
|
// ignore
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,7 @@ fn check_update(manually: bool) -> ResultType<()> {
|
|||||||
let mut file = std::fs::File::create(&file_path)?;
|
let mut file = std::fs::File::create(&file_path)?;
|
||||||
file.write_all(&file_data)?;
|
file.write_all(&file_data)?;
|
||||||
}
|
}
|
||||||
// We have checked if the `conns`` is empty before, but we need to check again.
|
// We have checked if the `conns` is empty before, but we need to check again.
|
||||||
// No need to care about the downloaded file here, because it's rare case that the `conns` are empty
|
// No need to care about the downloaded file here, because it's rare case that the `conns` are empty
|
||||||
// before the download, but not empty after the download.
|
// before the download, but not empty after the download.
|
||||||
if has_no_active_conns() {
|
if has_no_active_conns() {
|
||||||
|
|||||||
Reference in New Issue
Block a user