Skip to content

Commit 042d031

Browse files
authored
fix: source typo in src/clipboard.rs (rustdesk#11726)
Found via codespell
1 parent b2d5eb9 commit 042d031

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/platform/linux.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ mod desktop {
10161016
pub sid: String,
10171017
pub username: String,
10181018
pub uid: String,
1019-
pub protocal: String,
1019+
pub protocol: String,
10201020
pub display: String,
10211021
pub xauth: String,
10221022
pub home: String,
@@ -1027,12 +1027,12 @@ mod desktop {
10271027
impl Desktop {
10281028
#[inline]
10291029
pub fn is_wayland(&self) -> bool {
1030-
self.protocal == DISPLAY_SERVER_WAYLAND
1030+
self.protocol == DISPLAY_SERVER_WAYLAND
10311031
}
10321032

10331033
#[inline]
10341034
pub fn is_login_wayland(&self) -> bool {
1035-
super::is_gdm_user(&self.username) && self.protocal == DISPLAY_SERVER_WAYLAND
1035+
super::is_gdm_user(&self.username) && self.protocol == DISPLAY_SERVER_WAYLAND
10361036
}
10371037

10381038
#[inline]
@@ -1271,7 +1271,7 @@ mod desktop {
12711271
self.sid = seat0_values[0].clone();
12721272
self.uid = seat0_values[1].clone();
12731273
self.username = seat0_values[2].clone();
1274-
self.protocal = get_display_server_of_session(&self.sid).into();
1274+
self.protocol = get_display_server_of_session(&self.sid).into();
12751275
if self.is_login_wayland() {
12761276
self.display = "".to_owned();
12771277
self.xauth = "".to_owned();

0 commit comments

Comments
 (0)