fix: Just extract file stem for full paths
This commit is contained in:
parent
8998813d01
commit
000e9178f5
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ impl<'a> LookupBuilder<'a> {
|
|||
.or_else(|| try_build_icon_path(self.name, "/usr/share/pixmaps", self.force_svg))
|
||||
.or_else(|| {
|
||||
let p = PathBuf::from(&self.name);
|
||||
if let (Some(name), Some(parent)) = (p.file_name(), p.parent()) {
|
||||
if let (Some(name), Some(parent)) = (p.file_stem(), p.parent()) {
|
||||
try_build_icon_path(&name.to_string_lossy(), parent, self.force_svg)
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue