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

Hardcoded icon path in launcher for GNU/Linux systems #120

Closed
palob opened this issue Aug 6, 2015 · 3 comments
Closed

Hardcoded icon path in launcher for GNU/Linux systems #120

palob opened this issue Aug 6, 2015 · 3 comments
Assignees
Milestone

Comments

@palob
Copy link

palob commented Aug 6, 2015

Hi,

currently the icon path specified in the created .desktop launcher file is set to:
Icon=@pixmapsdir@/wxmedit.png.

This prevents icon theming without editing the launcher file.

The icon is installed to pixmapsdir = $(datadir)/pixmaps cf. here, i.e. /usr/share/pixmaps or ~/.local/share/pixmaps effectively.

According to the resources linked below freedesktop.org standard icon locations are:
/usr/share/icons/hicolor/[size]/apps/[icon name]
~/.local/share/icons/hicolor/[size]/apps/[icon name]
/usr/share/pixmaps/[icon name]

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

So you install the icon to a standard location already. According to the freedesktop.org standard and w.r.t. the icon lookup mechanism of all desktop environment the simple Icon line

Icon=wxmedit

without the full path and without file extension should suffice.

@hltj
Copy link
Collaborator

hltj commented Aug 7, 2015

Well, I will confirm whether it works under different distributions and non-linux system such as BSD, OpenIndiana etc.

@hltj
Copy link
Collaborator

hltj commented Oct 28, 2015

Unfortunately, There is no environment variable $XDG_DATA_DIRS set under OpenIndiana.
Thus, if wxmedit installed with prefix=/usr/local, the desktop can not find the icon if not using absolute path.

@stefanhusmann
Copy link

IMHO this is a bug in OpenIndiana. They should set $XDG_DATA_DIRS.

@hltj hltj self-assigned this Mar 19, 2018
@hltj hltj added this to the 3.2 milestone Mar 19, 2018
@hltj hltj closed this as completed Mar 19, 2018
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

No branches or pull requests

3 participants