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 #8

Closed
palob opened this issue May 28, 2015 · 6 comments
Closed

Hardcoded icon path in launcher #8

palob opened this issue May 28, 2015 · 6 comments

Comments

@palob
Copy link

palob commented May 28, 2015

Hi,

currently the icon path specified in the created .desktop launcher file is set to:
Icon=/usr/share/apx/icons/apx.svg

This prevents icon theming without editing the launcher file.

I'd like to ask you to change the icon location as well as the icon path line in the launcher according to the freedesktop.org standards.

Please find more info here:
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
https://github.com/Foggalong/hardcode-fixer/wiki/What,-Why-&-How

According to the above resources standard icon locations are:

/usr/share/icons/hicolor/[size]/apps/[icon name]
~/.local/share/icons/hicolor/[size]/apps/[icon name]
or simply:
/usr/share/pixmaps/[icon name]

The corresponding standard icon line in the .desktop launcher is:
Icon=[icon name] (without full path, without file extension)

for instance
Icon=apx

(for an icon apx.svg or apx.png stored in standard location

Could you please move the icon to one of those locations and adjust the icon path in the .desktop file accordingly?

@tstriker
Copy link
Owner

@palob - sorry for such a delayed reply - icon has been moved now. i did not manage to make it work without the extension, so desktop file now reads Icon=/usr/share/icons/hicolor/scalable/apx.svg

thank you for reporting the bug!

@palob
Copy link
Author

palob commented Dec 26, 2015

Thanks, it really should work with just Icon=apx now though.
You may need to run gtk-update-icon-cache -f /usr/share/icons/hicolor or logout from your desktop session.

@tstriker
Copy link
Owner

ya, tried it out (logging out is excessive -> alt+F2 -> "r" is enough) but
doesn't seem to be working.
let me know if and how you get it to work and i'll update the files then! :)

On Sat, 26 Dec 2015 at 02:27 palob notifications@github.com wrote:

Thanks, it really should work with just Icon=apx now though.
You may need to run gtk-update-icon-cache /usr/share/icons/hicolor or
logout from your desktop session.


Reply to this email directly or view it on GitHub
#8 (comment).

@Foggalong
Copy link

This issue isn't fixed btw, even if it's in the right location if the full path is used then it's still hardcoded :(

@tstriker
Copy link
Owner

:'(

On Thu, 21 Jan 2016, 17:53 Joshua H. Fogg notifications@github.com wrote:

This issue isn't fixed btw, even if it's in the right location if the full
path is used then it's still hardcoded :(


Reply to this email directly or view it on GitHub
#8 (comment).

@bilelmoussaoui
Copy link

@tbaugis Hey, in order to fix that you will have to add this line window.set_icon_name("apx") to BasicWindow and change the icon value in the destkop file to apx. Reinstall the application and everything should work fine! 👍

rapgro added a commit to rapgro/apx that referenced this issue Jul 9, 2016
* knits (2to3 rendered some bugs)

* move apx icon to share/icons/hicolor/scalable/ closes tstriker#8
rapgro added a commit to rapgro/apx that referenced this issue Jul 31, 2016
* knits (2to3 rendered some bugs)

* move apx icon to share/icons/hicolor/scalable/ closes tstriker#8

* looks like gtk.DrawingArea doesn't care about background much anymore, so set it on the window. fixes tstriker#14
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

4 participants