From b75453b08f5ff731884f20f07a4b952cce5d6811 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 01:20:52 -0500
Subject: [PATCH 01/56] spelling: a workaround
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/ui/cm.tis | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ui/cm.tis b/src/ui/cm.tis
index 716f2c6dd..a1d623322 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 already set in css, but not work, shit sciter
+ // below size:* is a workaround for Linux, it already set in css, but not work, shit sciter
return
From 8351d331b4d75705926da73c95d0abd322c0e133 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:17 -0500
Subject: [PATCH 02/56] spelling: acceleration
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/ui/remote.tis | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ui/remote.tis b/src/ui/remote.tis
index 63df0cb09..5c828689d 100644
--- a/src/ui/remote.tis
+++ b/src/ui/remote.tis
@@ -120,7 +120,7 @@ function resetWheel() {
var INERTIA_ACCELERATION = 30;
-// not good, precision not enough to simulate accelation effect,
+// not good, precision not enough to simulate acceleration effect,
// seems have to use pixel based rather line based delta
function accWheel(v, is_x) {
if (wheeling) return;
From 2b93de18ce8d559eb6d30afb7d46461e72473ab2 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:19 -0500
Subject: [PATCH 03/56] spelling: activate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/client.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/client.rs b/src/client.rs
index 635c8b661..440c0b0b0 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1662,7 +1662,7 @@ pub fn send_mouse(
interface.send(Data::Message(msg_out));
}
-/// Avtivate OS by sending mouse movement.
+/// Activate OS by sending mouse movement.
///
/// # Arguments
///
@@ -1690,7 +1690,7 @@ fn activate_os(interface: &impl Interface) {
/// # Arguments
///
/// * `p` - The password.
-/// * `avtivate` - Whether to activate OS.
+/// * `activate` - Whether to activate OS.
/// * `interface` - The interface for sending data.
pub fn input_os_password(p: String, activate: bool, interface: impl Interface) {
std::thread::spawn(move || {
@@ -1703,7 +1703,7 @@ pub fn input_os_password(p: String, activate: bool, interface: impl Interface) {
/// # Arguments
///
/// * `p` - The password.
-/// * `avtivate` - Whether to activate OS.
+/// * `activate` - Whether to activate OS.
/// * `interface` - The interface for sending data.
fn _input_os_password(p: String, activate: bool, interface: impl Interface) {
if activate {
From b4bb5bfecfc81c85568f9b438f56908e5cc82a5d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:31:17 -0500
Subject: [PATCH 04/56] spelling: active
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/server/input_service.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/server/input_service.rs b/src/server/input_service.rs
index 41ce8fd9e..814fea110 100644
--- a/src/server/input_service.rs
+++ b/src/server/input_service.rs
@@ -487,7 +487,7 @@ fn active_mouse_(conn: i32) -> bool {
return false;
}
- let in_actived_dist = |a: i32, b: i32| -> bool { (a - b).abs() < MOUSE_ACTIVE_DISTANCE };
+ let in_active_dist = |a: i32, b: i32| -> bool { (a - b).abs() < MOUSE_ACTIVE_DISTANCE };
// Check if input is in valid range
match crate::get_cursor_pos() {
@@ -496,7 +496,7 @@ fn active_mouse_(conn: i32) -> bool {
let lock = LATEST_PEER_INPUT_CURSOR.lock().unwrap();
(lock.x, lock.y)
};
- let mut can_active = in_actived_dist(last_in_x, x) && in_actived_dist(last_in_y, y);
+ let mut can_active = in_active_dist(last_in_x, x) && in_active_dist(last_in_y, y);
// The cursor may not have been moved to last input position if system is busy now.
// While this is not a common case, we check it again after some time later.
if !can_active {
@@ -505,7 +505,7 @@ fn active_mouse_(conn: i32) -> bool {
std::thread::sleep(std::time::Duration::from_micros(10));
// Sleep here can also somehow suppress delay accumulation.
if let Some((x2, y2)) = crate::get_cursor_pos() {
- can_active = in_actived_dist(last_in_x, x2) && in_actived_dist(last_in_y, y2);
+ can_active = in_active_dist(last_in_x, x2) && in_active_dist(last_in_y, y2);
}
}
if !can_active {
From cbfcc3657fef0e40920331dcf544070d0051a5e9 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:18 -0500
Subject: [PATCH 05/56] spelling: agreement
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/ui/install.tis | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ui/install.tis b/src/ui/install.tis
index 39301fd02..3a7920bcf 100644
--- a/src/ui/install.tis
+++ b/src/ui/install.tis
@@ -13,7 +13,7 @@ class Install: Reactor.Component {
-
{translate('End-user license agreement')}
+
{translate('End-user license agreement')}
{translate('agreement_tip')}
@@ -46,7 +46,7 @@ class Install: Reactor.Component {
}
}
- event click $(#aggrement) {
+ event click $(#agreement) {
view.open_url("http://rustdesk.com/privacy");
}
From 2929d0f6a5ed0f83e6ae0bdc9c2dbe727f106bb7 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:17 -0500
Subject: [PATCH 06/56] spelling: android
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
fastlane/metadata/android/en-US/full_description.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt
index 1f35ef92d..f78b3a20b 100644
--- a/fastlane/metadata/android/en-US/full_description.txt
+++ b/fastlane/metadata/android/en-US/full_description.txt
@@ -2,7 +2,7 @@ An open-source remote desktop application, the open source TeamViewer alternativ
Source code: https://github.com/rustdesk/rustdesk
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 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 Android remote control.
In addition to remote control, you can also transfer files between Android devices and PCs easily with RustDesk.
From 49c1b3a2df877c3798de827b9d40331e5b682926 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:18 -0500
Subject: [PATCH 07/56] spelling: another
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
flutter/lib/models/input_model.dart | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dart
index 0137b784e..63f86078c 100644
--- a/flutter/lib/models/input_model.dart
+++ b/flutter/lib/models/input_model.dart
@@ -197,7 +197,7 @@ class InputModel {
// Check update event type and set buttons to be sent.
int buttons = _lastButtons;
if (type == _kMouseEventMove) {
- // flutter may emit move event if one button is pressed and anoter button
+ // flutter may emit move event if one button is pressed and another button
// is pressing or releasing.
if (evt.buttons != _lastButtons) {
// For simplicity
From f45fdaa46fc7a397ae8e45a211a867cd324de85d Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:46:31 -0500
Subject: [PATCH 08/56] spelling: appveyor
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/enigo/appveyor.yml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libs/enigo/appveyor.yml b/libs/enigo/appveyor.yml
index af3142ad9..5ad7bc249 100644
--- a/libs/enigo/appveyor.yml
+++ b/libs/enigo/appveyor.yml
@@ -1,9 +1,9 @@
-# Appveyor configuration template for Rust using rustup for Rust installation
+# AppVeyor configuration template for Rust using rustup for Rust installation
# https://github.com/starkat99/appveyor-rust
## Operating System (VM environment) ##
-# Rust needs at least Visual Studio 2013 Appveyor OS for MSVC targets.
+# Rust needs at least Visual Studio 2013 AppVeyor OS for MSVC targets.
os: Visual Studio 2015
## Build Matrix ##
@@ -83,7 +83,7 @@ environment:
### Allowed failures ###
-# See Appveyor documentation for specific details. In short, place any channel or targets you wish
+# See AppVeyor documentation for specific details. In short, place any channel or targets you wish
# to allow build failures on (usually nightly at least is a wise choice). This will prevent a build
# or test failure in the matching channels/targets from failing the entire build.
matrix:
@@ -95,7 +95,7 @@ matrix:
## Install Script ##
-# This is the most important part of the Appveyor configuration. This installs the version of Rust
+# This is the most important part of the AppVeyor configuration. This installs the version of Rust
# specified by the 'channel' and 'target' environment variables from the build matrix. This uses
# rustup to install Rust.
#
@@ -110,7 +110,7 @@ install:
## Build Script ##
-# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
+# 'cargo test' takes care of building for us, so disable AppVeyor's build stage. This prevents
# the "directory does not contain a project or solution file" error.
build: false
From 185ff9e91e6c9aaa94e26c09f2e0e20e2639d580 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:19 -0500
Subject: [PATCH 09/56] spelling: available
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/scrap/src/common/hwcodec.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/scrap/src/common/hwcodec.rs b/libs/scrap/src/common/hwcodec.rs
index c77da3f8f..d92ed2a7d 100644
--- a/libs/scrap/src/common/hwcodec.rs
+++ b/libs/scrap/src/common/hwcodec.rs
@@ -293,8 +293,8 @@ pub fn check_config() {
quality: DEFAULT_HW_QUALITY,
rc: DEFAULT_RC,
};
- let encoders = CodecInfo::score(Encoder::avaliable_encoders(ctx));
- let decoders = CodecInfo::score(Decoder::avaliable_decoders());
+ let encoders = CodecInfo::score(Encoder::available_encoders(ctx));
+ let decoders = CodecInfo::score(Decoder::available_decoders());
if let Ok(old_encoders) = get_config(CFG_KEY_ENCODER) {
if let Ok(old_decoders) = get_config(CFG_KEY_DECODER) {
From c40ae690e320044de543c049c06735ac7d404bec Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:20 -0500
Subject: [PATCH 10/56] spelling: capture
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/server/video_service.rs | 32 ++++++++++++++++----------------
src/server/wayland.rs | 2 +-
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/server/video_service.rs b/src/server/video_service.rs
index b986c785c..618b003e9 100644
--- a/src/server/video_service.rs
+++ b/src/server/video_service.rs
@@ -309,9 +309,9 @@ pub fn test_create_capturer(privacy_mode_id: i32, timeout_millis: u64) -> bool {
}
#[cfg(windows)]
-fn check_uac_switch(privacy_mode_id: i32, captuerer_privacy_mode_id: i32) -> ResultType<()> {
- if captuerer_privacy_mode_id != 0 {
- if privacy_mode_id != captuerer_privacy_mode_id {
+fn check_uac_switch(privacy_mode_id: i32, capturer_privacy_mode_id: i32) -> ResultType<()> {
+ if capturer_privacy_mode_id != 0 {
+ if privacy_mode_id != capturer_privacy_mode_id {
if !crate::ui::win_privacy::is_process_consent_running()? {
bail!("consent.exe is running");
}
@@ -330,7 +330,7 @@ pub(super) struct CapturerInfo {
pub ndisplay: usize,
pub current: usize,
pub privacy_mode_id: i32,
- pub _captuerer_privacy_mode_id: i32,
+ pub _capturer_privacy_mode_id: i32,
pub capturer: Box,
}
@@ -371,29 +371,29 @@ fn get_capturer(use_yuv: bool, portable_service_running: bool) -> ResultType ResultType ResultType<()> {
while sp.ok() {
#[cfg(windows)]
- check_uac_switch(c.privacy_mode_id, c._captuerer_privacy_mode_id)?;
+ check_uac_switch(c.privacy_mode_id, c._capturer_privacy_mode_id)?;
let mut video_qos = VIDEO_QOS.lock().unwrap();
if video_qos.check_if_updated() {
@@ -602,7 +602,7 @@ fn run(sp: GenericService) -> ResultType<()> {
if !scrap::is_x11() {
if would_block_count >= 100 {
super::wayland::release_resource();
- bail!("Wayland capturer none 100 times, try restart captuere");
+ bail!("Wayland capturer none 100 times, try restart capture");
}
}
}
@@ -637,7 +637,7 @@ fn run(sp: GenericService) -> ResultType<()> {
while wait_begin.elapsed().as_millis() < timeout_millis as _ {
check_privacy_mode_changed(&sp, c.privacy_mode_id)?;
#[cfg(windows)]
- check_uac_switch(c.privacy_mode_id, c._captuerer_privacy_mode_id)?;
+ check_uac_switch(c.privacy_mode_id, c._capturer_privacy_mode_id)?;
frame_controller.try_wait_next(&mut fetched_conn_ids, 300);
// break if all connections have received current frame
if fetched_conn_ids.len() >= frame_controller.send_conn_ids.len() {
diff --git a/src/server/wayland.rs b/src/server/wayland.rs
index 24b3be110..68b9c37cf 100644
--- a/src/server/wayland.rs
+++ b/src/server/wayland.rs
@@ -276,7 +276,7 @@ pub(super) fn get_capturer() -> ResultType {
ndisplay: cap_display_info.num,
current: cap_display_info.current,
privacy_mode_id: 0,
- _captuerer_privacy_mode_id: 0,
+ _capturer_privacy_mode_id: 0,
capturer: Box::new(cap_display_info.capturer.clone()),
})
}
From 380a1670f0d8f1a965cb9e9b956d251fb2ffc733 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:49:36 -0500
Subject: [PATCH 11/56] spelling: chosen
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
.../widgets/kb_layout_type_chooser.dart | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/flutter/lib/desktop/widgets/kb_layout_type_chooser.dart b/flutter/lib/desktop/widgets/kb_layout_type_chooser.dart
index cfbdb0c4e..58a8f7109 100644
--- a/flutter/lib/desktop/widgets/kb_layout_type_chooser.dart
+++ b/flutter/lib/desktop/widgets/kb_layout_type_chooser.dart
@@ -6,7 +6,7 @@ import 'package:flutter_hbb/models/platform_model.dart';
import '../../common.dart';
-typedef KBChoosedCallback = Future Function(String);
+typedef KBChosenCallback = Future Function(String);
const double _kImageMarginVertical = 6.0;
const double _kImageMarginHorizontal = 10.0;
@@ -25,12 +25,12 @@ const _kKBLayoutImageMap = {
class _KBImage extends StatelessWidget {
final String kbLayoutType;
final double imageWidth;
- final RxString choosedType;
+ final RxString chosenType;
const _KBImage({
Key? key,
required this.kbLayoutType,
required this.imageWidth,
- required this.choosedType,
+ required this.chosenType,
}) : super(key: key);
@override
@@ -40,7 +40,7 @@ class _KBImage extends StatelessWidget {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(_kBorderRadius),
border: Border.all(
- color: choosedType.value == kbLayoutType
+ color: chosenType.value == kbLayoutType
? _kImageBorderColor
: Colors.transparent,
width: _kImageBoarderWidth,
@@ -66,13 +66,13 @@ class _KBImage extends StatelessWidget {
class _KBChooser extends StatelessWidget {
final String kbLayoutType;
final double imageWidth;
- final RxString choosedType;
- final KBChoosedCallback cb;
+ final RxString chosenType;
+ final KBChosenCallback cb;
const _KBChooser({
Key? key,
required this.kbLayoutType,
required this.imageWidth,
- required this.choosedType,
+ required this.chosenType,
required this.cb,
}) : super(key: key);
@@ -81,7 +81,7 @@ class _KBChooser extends StatelessWidget {
onChanged(String? v) async {
if (v != null) {
if (await cb(v)) {
- choosedType.value = v;
+ chosenType.value = v;
}
}
}
@@ -95,7 +95,7 @@ class _KBChooser extends StatelessWidget {
child: _KBImage(
kbLayoutType: kbLayoutType,
imageWidth: imageWidth,
- choosedType: choosedType,
+ chosenType: chosenType,
),
style: TextButton.styleFrom(padding: EdgeInsets.zero),
),
@@ -105,7 +105,7 @@ class _KBChooser extends StatelessWidget {
Obx(() => Radio(
splashRadius: 0,
value: kbLayoutType,
- groupValue: choosedType.value,
+ groupValue: chosenType.value,
onChanged: onChanged,
)),
Text(kbLayoutType),
@@ -121,14 +121,14 @@ class _KBChooser extends StatelessWidget {
}
class KBLayoutTypeChooser extends StatelessWidget {
- final RxString choosedType;
+ final RxString chosenType;
final double width;
final double height;
final double dividerWidth;
- final KBChoosedCallback cb;
+ final KBChosenCallback cb;
KBLayoutTypeChooser({
Key? key,
- required this.choosedType,
+ required this.chosenType,
required this.width,
required this.height,
required this.dividerWidth,
@@ -147,7 +147,7 @@ class KBLayoutTypeChooser extends StatelessWidget {
_KBChooser(
kbLayoutType: _kKBLayoutTypeISO,
imageWidth: imageWidth,
- choosedType: choosedType,
+ chosenType: chosenType,
cb: cb,
),
VerticalDivider(
@@ -156,7 +156,7 @@ class KBLayoutTypeChooser extends StatelessWidget {
_KBChooser(
kbLayoutType: _kKBLayoutTypeNotISO,
imageWidth: imageWidth,
- choosedType: choosedType,
+ chosenType: chosenType,
cb: cb,
),
],
@@ -208,7 +208,7 @@ showKBLayoutTypeChooser(
title:
Text('${translate('Select local keyboard type')} ($localPlatform)'),
content: KBLayoutTypeChooser(
- choosedType: KBLayoutType,
+ chosenType: KBLayoutType,
width: 360,
height: 200,
dividerWidth: 4.0,
From caa557e360784349e9d30e8ed7efe3a79310ac11 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:21 -0500
Subject: [PATCH 12/56] spelling: clipboard
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/clipboard/src/lib.rs | 40 +++++++++++++++++++--------------------
src/clipboard_file.rs | 34 ++++++++++++++++-----------------
src/ipc.rs | 4 ++--
src/server/connection.rs | 4 ++--
src/ui_cm_interface.rs | 8 ++++----
5 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/libs/clipboard/src/lib.rs b/libs/clipboard/src/lib.rs
index b992e39e3..e7a533d69 100644
--- a/libs/clipboard/src/lib.rs
+++ b/libs/clipboard/src/lib.rs
@@ -21,7 +21,7 @@ pub use context_send::*;
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(tag = "t", content = "c")]
-pub enum ClipbaordFile {
+pub enum ClipboardFile {
MonitorReady,
FormatList {
format_list: Vec<(i32, String)>,
@@ -61,8 +61,8 @@ struct ConnEnabled {
struct MsgChannel {
peer_id: String,
conn_id: i32,
- sender: UnboundedSender,
- receiver: Arc>>,
+ sender: UnboundedSender,
+ receiver: Arc>>,
}
#[derive(PartialEq)]
@@ -89,7 +89,7 @@ pub fn get_client_conn_id(peer_id: &str) -> Option {
pub fn get_rx_cliprdr_client(
peer_id: &str,
-) -> (i32, Arc>>) {
+) -> (i32, Arc>>) {
let mut lock = VEC_MSG_CHANNEL.write().unwrap();
match lock.iter().find(|x| x.peer_id == peer_id.to_owned()) {
Some(msg_channel) => (msg_channel.conn_id, msg_channel.receiver.clone()),
@@ -110,7 +110,7 @@ pub fn get_rx_cliprdr_client(
}
}
-pub fn get_rx_cliprdr_server(conn_id: i32) -> Arc>> {
+pub fn get_rx_cliprdr_server(conn_id: i32) -> Arc>> {
let mut lock = VEC_MSG_CHANNEL.write().unwrap();
match lock.iter().find(|x| x.conn_id == conn_id) {
Some(msg_channel) => msg_channel.receiver.clone(),
@@ -131,7 +131,7 @@ pub fn get_rx_cliprdr_server(conn_id: i32) -> Arc, conn_id: i32) ->
pub fn server_clip_file(
context: &mut Box,
conn_id: i32,
- msg: ClipbaordFile,
+ msg: ClipboardFile,
) -> u32 {
match msg {
- ClipbaordFile::MonitorReady => {
+ ClipboardFile::MonitorReady => {
log::debug!("server_monitor_ready called");
let ret = server_monitor_ready(context, conn_id);
log::debug!("server_monitor_ready called, return {}", ret);
ret
}
- ClipbaordFile::FormatList { format_list } => {
+ ClipboardFile::FormatList { format_list } => {
log::debug!("server_format_list called");
let ret = server_format_list(context, conn_id, format_list);
log::debug!("server_format_list called, return {}", ret);
ret
}
- ClipbaordFile::FormatListResponse { msg_flags } => {
+ ClipboardFile::FormatListResponse { msg_flags } => {
log::debug!("format_list_response called");
let ret = server_format_list_response(context, conn_id, msg_flags);
log::debug!("server_format_list_response called, return {}", ret);
ret
}
- ClipbaordFile::FormatDataRequest {
+ ClipboardFile::FormatDataRequest {
requested_format_id,
} => {
log::debug!("format_data_request called");
@@ -186,7 +186,7 @@ pub fn server_clip_file(
log::debug!("server_format_data_request called, return {}", ret);
ret
}
- ClipbaordFile::FormatDataResponse {
+ ClipboardFile::FormatDataResponse {
msg_flags,
format_data,
} => {
@@ -195,7 +195,7 @@ pub fn server_clip_file(
log::debug!("server_format_data_response called, return {}", ret);
ret
}
- ClipbaordFile::FileContentsRequest {
+ ClipboardFile::FileContentsRequest {
stream_id,
list_index,
dw_flags,
@@ -221,7 +221,7 @@ pub fn server_clip_file(
log::debug!("server_file_contents_request called, return {}", ret);
ret
}
- ClipbaordFile::FileContentsResponse {
+ ClipboardFile::FileContentsResponse {
msg_flags,
stream_id,
requested_data,
@@ -492,7 +492,7 @@ extern "C" fn client_format_list(
}
conn_id = (*clip_format_list).connID as i32;
}
- let data = ClipbaordFile::FormatList { format_list };
+ let data = ClipboardFile::FormatList { format_list };
// no need to handle result here
if conn_id == 0 {
VEC_MSG_CHANNEL
@@ -519,7 +519,7 @@ extern "C" fn client_format_list_response(
conn_id = (*format_list_response).connID as i32;
msg_flags = (*format_list_response).msgFlags as i32;
}
- let data = ClipbaordFile::FormatListResponse { msg_flags };
+ let data = ClipboardFile::FormatListResponse { msg_flags };
send_data(conn_id, data);
0
@@ -537,7 +537,7 @@ extern "C" fn client_format_data_request(
conn_id = (*format_data_request).connID as i32;
requested_format_id = (*format_data_request).requestedFormatId as i32;
}
- let data = ClipbaordFile::FormatDataRequest {
+ let data = ClipboardFile::FormatDataRequest {
requested_format_id,
};
// no need to handle result here
@@ -568,7 +568,7 @@ extern "C" fn client_format_data_response(
.to_vec();
}
}
- let data = ClipbaordFile::FormatDataResponse {
+ let data = ClipboardFile::FormatDataResponse {
msg_flags,
format_data,
};
@@ -614,7 +614,7 @@ extern "C" fn client_file_contents_request(
clip_data_id = (*file_contents_request).clipDataId as i32;
}
- let data = ClipbaordFile::FileContentsRequest {
+ let data = ClipboardFile::FileContentsRequest {
stream_id,
list_index,
dw_flags,
@@ -653,7 +653,7 @@ extern "C" fn client_file_contents_response(
.to_vec();
}
}
- let data = ClipbaordFile::FileContentsResponse {
+ let data = ClipboardFile::FileContentsResponse {
msg_flags,
stream_id,
requested_data,
diff --git a/src/clipboard_file.rs b/src/clipboard_file.rs
index e6f40e215..f0fe41b8d 100644
--- a/src/clipboard_file.rs
+++ b/src/clipboard_file.rs
@@ -1,9 +1,9 @@
-use clipboard::ClipbaordFile;
+use clipboard::ClipboardFile;
use hbb_common::message_proto::*;
-pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
+pub fn clip_2_msg(clip: ClipboardFile) -> Message {
match clip {
- ClipbaordFile::MonitorReady => Message {
+ ClipboardFile::MonitorReady => Message {
union: Some(message::Union::Cliprdr(Cliprdr {
union: Some(cliprdr::Union::Ready(CliprdrMonitorReady {
..Default::default()
@@ -12,7 +12,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
})),
..Default::default()
},
- ClipbaordFile::FormatList { format_list } => {
+ ClipboardFile::FormatList { format_list } => {
let mut formats: Vec = Vec::new();
for v in format_list.iter() {
formats.push(CliprdrFormat {
@@ -32,7 +32,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
..Default::default()
}
}
- ClipbaordFile::FormatListResponse { msg_flags } => Message {
+ ClipboardFile::FormatListResponse { msg_flags } => Message {
union: Some(message::Union::Cliprdr(Cliprdr {
union: Some(cliprdr::Union::FormatListResponse(
CliprdrServerFormatListResponse {
@@ -44,7 +44,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
})),
..Default::default()
},
- ClipbaordFile::FormatDataRequest {
+ ClipboardFile::FormatDataRequest {
requested_format_id,
} => Message {
union: Some(message::Union::Cliprdr(Cliprdr {
@@ -58,7 +58,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
})),
..Default::default()
},
- ClipbaordFile::FormatDataResponse {
+ ClipboardFile::FormatDataResponse {
msg_flags,
format_data,
} => Message {
@@ -74,7 +74,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
})),
..Default::default()
},
- ClipbaordFile::FileContentsRequest {
+ ClipboardFile::FileContentsRequest {
stream_id,
list_index,
dw_flags,
@@ -102,7 +102,7 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
})),
..Default::default()
},
- ClipbaordFile::FileContentsResponse {
+ ClipboardFile::FileContentsResponse {
msg_flags,
stream_id,
requested_data,
@@ -123,28 +123,28 @@ pub fn clip_2_msg(clip: ClipbaordFile) -> Message {
}
}
-pub fn msg_2_clip(msg: Cliprdr) -> Option {
+pub fn msg_2_clip(msg: Cliprdr) -> Option {
match msg.union {
- Some(cliprdr::Union::Ready(_)) => Some(ClipbaordFile::MonitorReady),
+ Some(cliprdr::Union::Ready(_)) => Some(ClipboardFile::MonitorReady),
Some(cliprdr::Union::FormatList(data)) => {
let mut format_list: Vec<(i32, String)> = Vec::new();
for v in data.formats.iter() {
format_list.push((v.id, v.format.clone()));
}
- Some(ClipbaordFile::FormatList { format_list })
+ Some(ClipboardFile::FormatList { format_list })
}
- Some(cliprdr::Union::FormatListResponse(data)) => Some(ClipbaordFile::FormatListResponse {
+ Some(cliprdr::Union::FormatListResponse(data)) => Some(ClipboardFile::FormatListResponse {
msg_flags: data.msg_flags,
}),
- Some(cliprdr::Union::FormatDataRequest(data)) => Some(ClipbaordFile::FormatDataRequest {
+ Some(cliprdr::Union::FormatDataRequest(data)) => Some(ClipboardFile::FormatDataRequest {
requested_format_id: data.requested_format_id,
}),
- Some(cliprdr::Union::FormatDataResponse(data)) => Some(ClipbaordFile::FormatDataResponse {
+ Some(cliprdr::Union::FormatDataResponse(data)) => Some(ClipboardFile::FormatDataResponse {
msg_flags: data.msg_flags,
format_data: data.format_data.into(),
}),
Some(cliprdr::Union::FileContentsRequest(data)) => {
- Some(ClipbaordFile::FileContentsRequest {
+ Some(ClipboardFile::FileContentsRequest {
stream_id: data.stream_id,
list_index: data.list_index,
dw_flags: data.dw_flags,
@@ -156,7 +156,7 @@ pub fn msg_2_clip(msg: Cliprdr) -> Option {
})
}
Some(cliprdr::Union::FileContentsResponse(data)) => {
- Some(ClipbaordFile::FileContentsResponse {
+ Some(ClipboardFile::FileContentsResponse {
msg_flags: data.msg_flags,
stream_id: data.stream_id,
requested_data: data.requested_data.into(),
diff --git a/src/ipc.rs b/src/ipc.rs
index c562225b4..9048db766 100644
--- a/src/ipc.rs
+++ b/src/ipc.rs
@@ -9,7 +9,7 @@ use parity_tokio_ipc::{
use serde_derive::{Deserialize, Serialize};
#[cfg(not(any(target_os = "android", target_os = "ios")))]
-pub use clipboard::ClipbaordFile;
+pub use clipboard::ClipboardFile;
use hbb_common::{
allow_err, bail, bytes,
bytes_codec::BytesCodec,
@@ -191,7 +191,7 @@ pub enum Data {
Test,
SyncConfig(Option<(Config, Config2)>),
#[cfg(not(any(target_os = "android", target_os = "ios")))]
- ClipbaordFile(ClipbaordFile),
+ ClipboardFile(ClipboardFile),
ClipboardFileEnabled(bool),
PrivacyModeState((i32, PrivacyModeState)),
TestRendezvousServer,
diff --git a/src/server/connection.rs b/src/server/connection.rs
index f91281a52..087dbde4c 100644
--- a/src/server/connection.rs
+++ b/src/server/connection.rs
@@ -319,7 +319,7 @@ impl Connection {
allow_err!(conn.stream.send_raw(bytes).await);
}
#[cfg(windows)]
- ipc::Data::ClipbaordFile(_clip) => {
+ ipc::Data::ClipboardFile(_clip) => {
if conn.file_transfer_enabled() {
allow_err!(conn.stream.send(&clip_2_msg(_clip)).await);
}
@@ -1309,7 +1309,7 @@ impl Connection {
if self.file_transfer_enabled() {
#[cfg(windows)]
if let Some(clip) = msg_2_clip(_clip) {
- self.send_to_cm(ipc::Data::ClipbaordFile(clip))
+ self.send_to_cm(ipc::Data::ClipboardFile(clip))
}
}
}
diff --git a/src/ui_cm_interface.rs b/src/ui_cm_interface.rs
index 695d60417..a32662d07 100644
--- a/src/ui_cm_interface.rs
+++ b/src/ui_cm_interface.rs
@@ -253,7 +253,7 @@ impl IpcTaskRunner {
if !pre_enabled && ContextSend::is_enabled() {
allow_err!(
self.stream
- .send(&Data::ClipbaordFile(clipboard::ClipbaordFile::MonitorReady))
+ .send(&Data::ClipboardFile(clipboard::ClipboardFile::MonitorReady))
.await
);
}
@@ -288,7 +288,7 @@ impl IpcTaskRunner {
rx_clip = rx_clip1.lock().await;
} else {
let rx_clip2;
- (_tx_clip, rx_clip2) = unbounded_channel::();
+ (_tx_clip, rx_clip2) = unbounded_channel::();
rx_clip1 = Arc::new(TokioMutex::new(rx_clip2));
rx_clip = rx_clip1.lock().await;
}
@@ -354,7 +354,7 @@ impl IpcTaskRunner {
}
}
#[cfg(windows)]
- Data::ClipbaordFile(_clip) => {
+ Data::ClipboardFile(_clip) => {
#[cfg(windows)]
{
let conn_id = self.conn_id;
@@ -394,7 +394,7 @@ impl IpcTaskRunner {
clip_file = rx_clip.recv() => match clip_file {
Some(_clip) => {
#[cfg(windows)]
- allow_err!(self.tx.send(Data::ClipbaordFile(_clip)));
+ allow_err!(self.tx.send(Data::ClipboardFile(_clip)));
}
None => {
//
From 19046ba8677968a134dd8dd908a1927598a51d61 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:39:49 -0500
Subject: [PATCH 13/56] spelling: colorspace
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/platform/macos.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/platform/macos.rs b/src/platform/macos.rs
index 70e38eb57..ae996b68a 100644
--- a/src/platform/macos.rs
+++ b/src/platform/macos.rs
@@ -331,7 +331,7 @@ pub fn get_cursor_data(hcursor: u64) -> ResultType {
*/
let mut colors: Vec = Vec::new();
colors.reserve((size.height * size.width) as usize * 4);
- // TIFF is rgb colrspace, no need to convert
+ // TIFF is rgb colorspace, no need to convert
// let cs: id = msg_send![class!(NSColorSpace), sRGBColorSpace];
for y in 0..(size.height as _) {
for x in 0..(size.width as _) {
From ec8cb0579f58dd9b797db9328cbc446985d4085a Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:22 -0500
Subject: [PATCH 14/56] spelling: common
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/hbb_common/protos/message.proto | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/hbb_common/protos/message.proto b/libs/hbb_common/protos/message.proto
index 650e42104..de0d6e7c1 100644
--- a/libs/hbb_common/protos/message.proto
+++ b/libs/hbb_common/protos/message.proto
@@ -503,7 +503,7 @@ message AudioFrame {
// Notify peer to show message box.
message MessageBox {
- // Message type. Refer to flutter/lib/commom.dart/msgBox().
+ // Message type. Refer to flutter/lib/common.dart/msgBox().
string msgtype = 1;
string title = 2;
// English
From 5b3835d1fe8f70c53e5a151a8470d25489614b96 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:23 -0500
Subject: [PATCH 15/56] spelling: connecting
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
flutter/web/js/src/connection.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flutter/web/js/src/connection.ts b/flutter/web/js/src/connection.ts
index 2846d9078..ce6d26684 100644
--- a/flutter/web/js/src/connection.ts
+++ b/flutter/web/js/src/connection.ts
@@ -82,7 +82,7 @@ export default class Connection {
this._ws = ws;
this._id = id;
console.log(
- new Date() + ": Conntecting to rendezvoous server: " + uri + ", for " + id
+ new Date() + ": Connecting to rendezvoous server: " + uri + ", for " + id
);
await ws.open();
console.log(new Date() + ": Connected to rendezvoous server");
From 51f736e84fc49e8f1e5eb8b6dffe9d4b257a42e0 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:22 -0500
Subject: [PATCH 16/56] spelling: connection
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/server/portable_service.rs | 2 +-
src/ui_interface.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/server/portable_service.rs b/src/server/portable_service.rs
index 6d2e92ae3..5d96a330e 100644
--- a/src/server/portable_service.rs
+++ b/src/server/portable_service.rs
@@ -407,7 +407,7 @@ pub mod server {
}
ConnCount(Some(n)) => {
if n == 0 {
- log::info!("Connnection count equals 0, exit");
+ log::info!("Connection count equals 0, exit");
stream.send(&Data::DataPortableService(WillClose)).await.ok();
break;
}
diff --git a/src/ui_interface.rs b/src/ui_interface.rs
index 3b7d1c2c0..c628f0186 100644
--- a/src/ui_interface.rs
+++ b/src/ui_interface.rs
@@ -936,7 +936,7 @@ pub fn account_auth_result() -> String {
serde_json::to_string(&account::OidcSession::get_result()).unwrap_or_default()
}
-// notice: avoiding create ipc connecton repeatly,
+// notice: avoiding create ipc connection repeatly,
// because windows named pipe has serious memory leak issue.
#[tokio::main(flavor = "current_thread")]
async fn check_connect_status_(reconnect: bool, rx: mpsc::UnboundedReceiver) {
From 6ca852363ea28e6c32141064020cd9741d0139d1 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:23 -0500
Subject: [PATCH 17/56] spelling: control
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/scrap/src/common/hwcodec.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/scrap/src/common/hwcodec.rs b/libs/scrap/src/common/hwcodec.rs
index d92ed2a7d..9cd6077a6 100644
--- a/libs/scrap/src/common/hwcodec.rs
+++ b/libs/scrap/src/common/hwcodec.rs
@@ -16,7 +16,7 @@ use hwcodec::{
ffmpeg::{CodecInfo, CodecInfos, DataFormat},
AVPixelFormat,
Quality::{self, *},
- RateContorl::{self, *},
+ RateControl::{self, *},
};
use std::sync::{Arc, Mutex};
@@ -31,7 +31,7 @@ const DEFAULT_PIXFMT: AVPixelFormat = AVPixelFormat::AV_PIX_FMT_YUV420P;
pub const DEFAULT_TIME_BASE: [i32; 2] = [1, 30];
const DEFAULT_GOP: i32 = 60;
const DEFAULT_HW_QUALITY: Quality = Quality_Default;
-const DEFAULT_RC: RateContorl = RC_DEFAULT;
+const DEFAULT_RC: RateControl = RC_DEFAULT;
pub struct HwEncoder {
encoder: Encoder,
From 8c901c258528fc8386a0059093f5681837b617ac Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:24 -0500
Subject: [PATCH 18/56] spelling: custom
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/enigo/src/linux/nix_impl.rs | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/libs/enigo/src/linux/nix_impl.rs b/libs/enigo/src/linux/nix_impl.rs
index 47e6d53c0..e2e4bd4a9 100644
--- a/libs/enigo/src/linux/nix_impl.rs
+++ b/libs/enigo/src/linux/nix_impl.rs
@@ -13,7 +13,7 @@ pub struct Enigo {
is_x11: bool,
tfc: Option,
custom_keyboard: Option,
- cutsom_mouse: Option,
+ custom_mouse: Option,
}
impl Enigo {
@@ -31,7 +31,7 @@ impl Enigo {
}
/// Set custom mouse.
pub fn set_custom_mouse(&mut self, custom_mouse: CustomMouce) {
- self.cutsom_mouse = Some(custom_mouse)
+ self.custom_mouse = Some(custom_mouse)
}
/// Get custom keyboard.
pub fn get_custom_keyboard(&mut self) -> &mut Option {
@@ -39,7 +39,7 @@ impl Enigo {
}
/// Get custom mouse.
pub fn get_custom_mouse(&mut self) -> &mut Option {
- &mut self.cutsom_mouse
+ &mut self.custom_mouse
}
fn tfc_key_down_or_up(&mut self, key: Key, down: bool, up: bool) -> bool {
@@ -99,7 +99,7 @@ impl Default for Enigo {
None
},
custom_keyboard: None,
- cutsom_mouse: None,
+ custom_mouse: None,
xdo: EnigoXdo::default(),
}
}
@@ -118,7 +118,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_move_to(x, y);
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_move_to(x, y)
}
}
@@ -127,7 +127,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_move_relative(x, y);
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_move_relative(x, y)
}
}
@@ -136,7 +136,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_down(button)
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_down(button)
} else {
Ok(())
@@ -147,7 +147,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_up(button)
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_up(button)
}
}
@@ -156,7 +156,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_click(button)
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_click(button)
}
}
@@ -165,7 +165,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_scroll_x(length)
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_scroll_x(length)
}
}
@@ -174,7 +174,7 @@ impl MouseControllable for Enigo {
if self.is_x11 {
self.xdo.mouse_scroll_y(length)
} else {
- if let Some(mouse) = &mut self.cutsom_mouse {
+ if let Some(mouse) = &mut self.custom_mouse {
mouse.mouse_scroll_y(length)
}
}
From 919e42b1a1657ecbfb955990be24801dfb9bc3a0 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:24 -0500
Subject: [PATCH 19/56] spelling: device
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/client/helper.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/helper.rs b/src/client/helper.rs
index d38fbf223..e4736c0e8 100644
--- a/src/client/helper.rs
+++ b/src/client/helper.rs
@@ -15,7 +15,7 @@ const MIN_LATENCY: i64 = 100;
/// Only sync the audio to video, not the other way around.
#[derive(Debug)]
pub struct LatencyController {
- last_video_remote_ts: i64, // generated on remote deivce
+ last_video_remote_ts: i64, // generated on remote device
update_time: Instant,
allow_audio: bool,
}
From 7ba932825d4d5f1e95f7b2fef476e457b6234093 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 03:10:42 -0500
Subject: [PATCH 20/56] spelling: distro
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
libs/hbb_common/src/platform/linux.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libs/hbb_common/src/platform/linux.rs b/libs/hbb_common/src/platform/linux.rs
index 4c6375dd7..a6ae2a9e7 100644
--- a/libs/hbb_common/src/platform/linux.rs
+++ b/libs/hbb_common/src/platform/linux.rs
@@ -1,15 +1,15 @@
use crate::ResultType;
lazy_static::lazy_static! {
- pub static ref DISTRO: Disto = Disto::new();
+ pub static ref DISTRO: Distro = Distro::new();
}
-pub struct Disto {
+pub struct Distro {
pub name: String,
pub version_id: String,
}
-impl Disto {
+impl Distro {
fn new() -> Self {
let name = run_cmds("awk -F'=' '/^NAME=/ {print $2}' /etc/os-release".to_owned())
.unwrap_or_default()
From 43b975bd355496207e3f2b7a5bb7df0cc5697f7f Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 9 Jan 2023 02:30:25 -0500
Subject: [PATCH 21/56] spelling: elapsed
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
---
src/ui/cm.tis | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ui/cm.tis b/src/ui/cm.tis
index a1d623322..4e46e217f 100644
--- a/src/ui/cm.tis
+++ b/src/ui/cm.tis
@@ -42,7 +42,7 @@ class Body: Reactor.Component