mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-23 18:00:44 +02:00
fix: pass proper type to starts_with
This commit is contained in:
@@ -1306,7 +1306,7 @@ Categories=Network;WebBrowser;
|
|||||||
|
|
||||||
// If in home directory, likely manual installation
|
// If in home directory, likely manual installation
|
||||||
if let Some(user_dirs) = directories::UserDirs::new() {
|
if let Some(user_dirs) = directories::UserDirs::new() {
|
||||||
if exe_str.starts_with(&user_dirs.home_dir().to_string_lossy()) {
|
if exe_str.starts_with(&user_dirs.home_dir().to_string_lossy().as_ref()) {
|
||||||
return "manual".to_string();
|
return "manual".to_string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user