We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69268f5 commit 86b6656Copy full SHA for 86b6656
src/main.rs
@@ -101,12 +101,12 @@ fn register_icon_theme_paths() {
101
}
102
103
// Ensure installed packages (Flatpak/AppImage) can find their bundled icon assets.
104
- if let Ok(exe_path) = std::env::current_exe() {
105
- if let Some(prefix) = exe_path.parent().and_then(|path| path.parent()) {
106
- let share_icons = prefix.join("share/icons");
107
- if share_icons.exists() {
108
- theme.add_search_path(&share_icons);
109
- }
+ if let Ok(exe_path) = std::env::current_exe()
+ && let Some(prefix) = exe_path.parent().and_then(|path| path.parent())
+ {
+ let share_icons = prefix.join("share/icons");
+ if share_icons.exists() {
+ theme.add_search_path(&share_icons);
110
111
112
0 commit comments