Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export: consider only absolute candidate icon paths that exist #1318

Merged
merged 1 commit into from
May 1, 2024

Conversation

JamiKettunen
Copy link
Contributor

Previously (for nearly two years since 4522f29?) attempting e.g. distrobox-export -a htop with a file/dir named htop in $PWD it would mistakenly get detected as the icon for the program, copied over to ~/.local/share/icons/ and attempted to be used by the .desktop file.

Not sure if this is following the spec exactly but it does fix this very odd issue I only noticed because I happened to have a local git tree checkout of a program in my $HOME and while there tried to export a launcher for it to my host and dug deeper when the icon was showing up as entirely blank in GNOME.

@JamiKettunen JamiKettunen force-pushed the fix-pwd-icon-confusion branch from 2eb3415 to c9769cf Compare March 30, 2024 15:02
Previously (for nearly two years?) attempting e.g.
"distrobox-export -a htop" with a file/dir named "htop" in $PWD it would
mistakenly get detected as the icon for the program, copied over to
~/.local/share/icons/ and attempted to be used by the .desktop file.
@JamiKettunen JamiKettunen force-pushed the fix-pwd-icon-confusion branch from c9769cf to ef1f98c Compare March 30, 2024 15:05
@JamiKettunen JamiKettunen changed the title export: ensure icon candidate path is absolute before considering it export: consider only absolute candidate icon paths that exist Mar 30, 2024
@JamiKettunen
Copy link
Contributor Author

@89luca89 Would you mind taking a look at some of the open pull requests when you have time? Thanks :)

@89luca89
Copy link
Owner

89luca89 commented May 1, 2024

Hi @JamiKettunen sorry was pretty busy :)

LGTM thanks!

@89luca89 89luca89 merged commit 1fa4df9 into 89luca89:main May 1, 2024
15 checks passed
@JamiKettunen JamiKettunen deleted the fix-pwd-icon-confusion branch May 1, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants