mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-04-23 12:26:17 +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 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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user