diff --git a/.github/workflows/flutter-nightly.yml b/.github/workflows/flutter-nightly.yml index 5474183db..17e338edc 100644 --- a/.github/workflows/flutter-nightly.yml +++ b/.github/workflows/flutter-nightly.yml @@ -377,7 +377,7 @@ jobs: run: | ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart - - name: Upload Artifcat + - name: Upload Artifact uses: actions/upload-artifact@master with: name: bridge-artifact @@ -1012,7 +1012,7 @@ jobs: files: | rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb - - name: Upload Artifcat + - name: Upload Artifact uses: actions/upload-artifact@master if: ${{ contains(matrix.job.extra-build-features, 'flatpak') }} with: @@ -1188,7 +1188,7 @@ jobs: files: | rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-${{ matrix.job.os }}.deb - - name: Upload Artifcat + - name: Upload Artifact uses: actions/upload-artifact@master if: ${{ contains(matrix.job.extra-build-features, 'flatpak') }} with: diff --git a/build.py b/build.py index 127469784..ca91b3581 100755 --- a/build.py +++ b/build.py @@ -21,7 +21,7 @@ skip_cargo = False def custom_os_system(cmd): err = os._system(cmd) if err != 0: - print(f"Error occured when executing: {cmd}. Exiting.") + print(f"Error occurred when executing: {cmd}. Exiting.") sys.exit(-1) # replace prebuilt os.system os._system = os.system diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt index 966ad3df8..1f35ef92d 100644 --- a/fastlane/metadata/android/en-US/full_description.txt +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -4,7 +4,7 @@ Doc: https://rustdesk.com/docs/en/manual/mobile/ In order for a remote device to control your Android device via mouse or touch, you need to allow RustDesk to use the "Accessibility" service, RustDesk uses AccessibilityService API to implement Addroid remote control. -In addtion to remote control, you can also transfer files between Android devices and PCs easily with RustDesk. +In addition to remote control, you can also transfer files between Android devices and PCs easily with RustDesk. You have full control of your data, with no concerns about security. You can use our rendezvous/relay server, or self-hosting, or write your own rendezvous/relay server. Self-hosting server is free and open source: https://github.com/rustdesk/rustdesk-server diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 46ba90d66..8d047dd0d 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -46,7 +46,7 @@ var isWebDesktop = false; var version = ""; int androidVersion = 0; -/// only avaliable for Windows target +/// only available for Windows target int windowsBuildNumber = 0; DesktopType? desktopType; @@ -1373,7 +1373,7 @@ Future> getHttpHeaders() async { }; } -// Simple wrapper of built-in types for refrence use. +// Simple wrapper of built-in types for reference use. class SimpleWrapper { T value; SimpleWrapper(this.value); @@ -1409,7 +1409,7 @@ Future reloadAllWindows() async { /// Indicate the flutter app is running in portable mode. /// /// [Note] -/// Portable build is only avaliable on Windows. +/// Portable build is only available on Windows. bool isRunningInPortableMode() { if (!Platform.isWindows) { return false; diff --git a/flutter/lib/common/widgets/peer_card.dart b/flutter/lib/common/widgets/peer_card.dart index 44f82575e..a98739606 100644 --- a/flutter/lib/common/widgets/peer_card.dart +++ b/flutter/lib/common/widgets/peer_card.dart @@ -464,7 +464,7 @@ abstract class BasePeerCard extends StatelessWidget { ); } - /// Only avaliable on Windows. + /// Only available on Windows. @protected MenuEntryBase _createShortCutAction(String id) { return MenuEntryButton( diff --git a/flutter/lib/utils/multi_window_manager.dart b/flutter/lib/utils/multi_window_manager.dart index 91cb9a08a..de6750a3f 100644 --- a/flutter/lib/utils/multi_window_manager.dart +++ b/flutter/lib/utils/multi_window_manager.dart @@ -208,7 +208,7 @@ class RustDeskMultiWindowManager { /// Remove active window which has [`windowId`] /// - /// [Avaliability] + /// [Availability] /// This function should only be called from main window. /// For other windows, please post a unregister(hide) event to main window handler: /// `rustDeskWinManager.call(WindowType.Main, kWindowEventHide, {"id": windowId!});` diff --git a/libs/enigo/src/lib.rs b/libs/enigo/src/lib.rs index 083345e63..a47f9558d 100644 --- a/libs/enigo/src/lib.rs +++ b/libs/enigo/src/lib.rs @@ -21,7 +21,7 @@ //! Possible use cases could be for testing user interfaces on different //! plattforms, //! building remote control applications or just automating tasks for user -//! interfaces unaccessible by a public API or scripting laguage. +//! interfaces unaccessible by a public API or scripting language. //! //! For the keyboard there are currently two modes you can use. The first mode //! is represented by the [key_sequence]() function diff --git a/libs/enigo/src/macos/macos_impl.rs b/libs/enigo/src/macos/macos_impl.rs index 937320f7d..1ae41f0c3 100644 --- a/libs/enigo/src/macos/macos_impl.rs +++ b/libs/enigo/src/macos/macos_impl.rs @@ -68,7 +68,7 @@ extern "C" { ) -> Boolean; fn CGEventPost(tapLocation: CGEventTapLocation, event: *mut MyCGEvent); - // Actually return CFDataRef which is const here, but for coding convienence, return *mut c_void + // Actually return CFDataRef which is const here, but for coding convenience, return *mut c_void fn TISGetInputSourceProperty(source: TISInputSourceRef, property: *const c_void) -> *mut c_void; // not present in servo/core-graphics diff --git a/libs/hbb_common/src/fs.rs b/libs/hbb_common/src/fs.rs index e08414324..fec8b8670 100644 --- a/libs/hbb_common/src/fs.rs +++ b/libs/hbb_common/src/fs.rs @@ -578,7 +578,7 @@ impl TransferJob { /// /// [`Note`] /// Conditions: - /// 1. Files are not waiting for comfirmation by peers. + /// 1. Files are not waiting for confirmation by peers. #[inline] pub fn job_completed(&self) -> bool { // has no error, Condition 2 diff --git a/libs/scrap/src/dxgi/mag.rs b/libs/scrap/src/dxgi/mag.rs index 78f14194c..0de86055e 100644 --- a/libs/scrap/src/dxgi/mag.rs +++ b/libs/scrap/src/dxgi/mag.rs @@ -339,7 +339,7 @@ impl CapturerMag { } // Register the host window class. See the MSDN documentation of the - // Magnification API for more infomation. + // Magnification API for more information. let wcex = WNDCLASSEXA { cbSize: size_of::() as _, style: 0, diff --git a/libs/virtual_display/dylib/src/win10/IddController.c b/libs/virtual_display/dylib/src/win10/IddController.c index 27dd22792..c1faccfc2 100644 --- a/libs/virtual_display/dylib/src/win10/IddController.c +++ b/libs/virtual_display/dylib/src/win10/IddController.c @@ -66,7 +66,7 @@ const char* GetLastMsg() BOOL InstallUpdate(LPCWSTR fullInfPath, PBOOL rebootRequired) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); // UpdateDriverForPlugAndPlayDevicesW may return FALSE while driver was successfully installed... if (FALSE == UpdateDriverForPlugAndPlayDevicesW( @@ -96,7 +96,7 @@ BOOL InstallUpdate(LPCWSTR fullInfPath, PBOOL rebootRequired) BOOL Uninstall(LPCWSTR fullInfPath, PBOOL rebootRequired) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); if (FALSE == DiUninstallDriverW( NULL, @@ -122,7 +122,7 @@ BOOL Uninstall(LPCWSTR fullInfPath, PBOOL rebootRequired) BOOL IsDeviceCreated(PBOOL created) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); HDEVINFO hardwareDeviceInfo = SetupDiGetClassDevs( &GUID_DEVINTERFACE_IDD_DRIVER_DEVICE, @@ -181,7 +181,7 @@ BOOL IsDeviceCreated(PBOOL created) BOOL DeviceCreate(PHSWDEVICE hSwDevice) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); if (*hSwDevice != NULL) { @@ -274,7 +274,7 @@ BOOL DeviceCreate(PHSWDEVICE hSwDevice) VOID DeviceClose(HSWDEVICE hSwDevice) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); if (hSwDevice != INVALID_HANDLE_VALUE && hSwDevice != NULL) { @@ -284,7 +284,7 @@ VOID DeviceClose(HSWDEVICE hSwDevice) BOOL MonitorPlugIn(UINT index, UINT edid, INT retries) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); if (retries < 0) { @@ -359,7 +359,7 @@ BOOL MonitorPlugIn(UINT index, UINT edid, INT retries) BOOL MonitorPlugOut(UINT index) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); HANDLE hDevice = DeviceOpenHandle(); if (hDevice == INVALID_HANDLE_VALUE || hDevice == NULL) @@ -400,7 +400,7 @@ BOOL MonitorPlugOut(UINT index) BOOL MonitorModesUpdate(UINT index, UINT modeCount, PMonitorMode modes) { - SetLastMsg("Sucess"); + SetLastMsg("Success"); HANDLE hDevice = DeviceOpenHandle(); if (hDevice == INVALID_HANDLE_VALUE || hDevice == NULL) @@ -721,7 +721,7 @@ Clean0: // https://stackoverflow.com/questions/67164846/createfile-fails-unless-i-disable-enable-my-device HANDLE DeviceOpenHandle() { - SetLastMsg("Sucess"); + SetLastMsg("Success"); // const int maxDevPathLen = 256; TCHAR devicePath[256] = { 0 }; diff --git a/libs/virtual_display/dylib/src/win10/IddController.h b/libs/virtual_display/dylib/src/win10/IddController.h index f7f3df3f5..767d64798 100644 --- a/libs/virtual_display/dylib/src/win10/IddController.h +++ b/libs/virtual_display/dylib/src/win10/IddController.h @@ -47,7 +47,7 @@ BOOL IsDeviceCreated(PBOOL created); /** * @brief Create device. * Only one device should be created. - * If device is installed ealier, this function returns FALSE. + * If device is installed earlier, this function returns FALSE. * * @param hSwDevice [out] Handler of software device, used by DeviceCreate(). Should be **NULL**. * diff --git a/src/core_main.rs b/src/core_main.rs index eb8721563..1f42f8aad 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -305,7 +305,7 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option { log::error!("Failed to start server: {}", err); } - _ => { /*no hapen*/ } + _ => { /*no happen*/ } } } std::thread::sleep(std::time::Duration::from_millis(super::SERVICE_INTERVAL)); diff --git a/src/server/connection.rs b/src/server/connection.rs index fdd0ea77a..301766704 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -244,7 +244,7 @@ impl Connection { loop { tokio::select! { - // biased; // video has higher priority // causing test_delay_timer failed while transfering big file + // biased; // video has higher priority // causing test_delay_timer failed while transferring big file Some(data) = rx_from_cm.recv() => { match data { diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 6b678dbdc..a94a7a2ef 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -223,7 +223,7 @@ lazy_static::lazy_static! { // First call set_uinput() will create keyboard and mouse clients. // The clients are ipc connections that must live shorter than tokio runtime. -// Thus this funtion must not be called in a temporary runtime. +// Thus this function must not be called in a temporary runtime. #[cfg(target_os = "linux")] pub async fn setup_uinput(minx: i32, maxx: i32, miny: i32, maxy: i32) -> ResultType<()> { // Keyboard and mouse both open /dev/uinput diff --git a/src/server/video_qos.rs b/src/server/video_qos.rs index d75596157..47bf49707 100644 --- a/src/server/video_qos.rs +++ b/src/server/video_qos.rs @@ -198,7 +198,7 @@ impl VideoQoS { #[cfg(target_os = "android")] { - // fix when andorid screen shrinks + // fix when android screen shrinks let fix = scrap::Display::fix_quality() as u32; log::debug!("Android screen, fix quality:{}", fix); let base_bitrate = base_bitrate * fix; diff --git a/src/ui/cm.tis b/src/ui/cm.tis index 74eb6c6d2..716f2c6dd 100644 --- a/src/ui/cm.tis +++ b/src/ui/cm.tis @@ -31,7 +31,7 @@ class Body: Reactor.Component var disconnected = c.disconnected; var show_elevation_btn = handler.can_elevate() && show_elevation && !c.is_file_transfer && c.port_forward.length == 0; var show_accept_btn = handler.get_option('approve-mode') != 'password'; - // below size:* is work around for Linux, it alreayd set in css, but not work, shit sciter + // below size:* is work around for Linux, it already set in css, but not work, shit sciter return
diff --git a/src/ui/remote.tis b/src/ui/remote.tis index 012205abc..36f997540 100644 --- a/src/ui/remote.tis +++ b/src/ui/remote.tis @@ -26,7 +26,7 @@ handler.setDisplay = function(x, y, w, h, cursor_embeded) { if (recording) handler.record_screen(true, w, h); } -// in case toolbar not shown correclty +// in case toolbar not shown correctly view.windowMinSize = (scaleIt(500), scaleIt(300)); function adaptDisplay() { diff --git a/src/windows.cc b/src/windows.cc index 137ae399e..c4286ebdd 100644 --- a/src/windows.cc +++ b/src/windows.cc @@ -95,7 +95,7 @@ extern "C" CreateEnvironmentBlock(&lpEnvironment, // Environment block hToken, // New token - TRUE); // Inheritence + TRUE); // Inheritance } if (lpEnvironment) {