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

Hack-fix SVG conversion for Arch Linux #14

Closed
wants to merge 2 commits into from
Closed

Hack-fix SVG conversion for Arch Linux #14

wants to merge 2 commits into from

Conversation

Celti
Copy link

@Celti Celti commented May 20, 2016

This reworks the Makefile to use zooms instead of dimensions to convert the icons (tested as working with rsvg on Debian Jessie) and further allows specifying an alternate converter — on Arch, lasem-render uses the same syntax (for zooms, anyway — doesn't allow dimensions) and actually works, unlike rsvg-convert.

I am fine with maintaining this locally for Arch PKGBUILDs, if necessary, but I don't think there's any harm in adding it to the integrations (I've tried to avoid any such problems).

As with my other PR, this is a problem for all integrations: here is a gist with a patch that should apply cleanly to all of them (tested on google-play and owncloud-music).

Celti added 2 commits May 20, 2016 02:18
rsvg-convert is broken on Arch Linux for unknown reasons and has
remained so since before November 2015 (issue #180).

The prior commit (64397c2) changes the resizing operation rsvg-convert
uses to zooming (works identically to specifying dimensions as tested
with rsvg-convert in Jessie), while this one allows specifying an
arbitrary alternate converter, as long as it is compatible with
rsvg-convert's syntax.

As a final piece to the solution, I have altered the nuvola-app-*-git
PKGBUILDs for Arch to specify lasem-render, which is included in [extra]
on Arch and has been tested to produce properly working icons.

[1] https://wiki.gnome.org/Projects/Lasem
@jiri-janousek
Copy link
Member

I'm ok with allowing specifying alternate SVG converter, but I'm against converting dimensions to zooms. Since the source icons are not guaranteed to always have same size, zoom approach is fragile. I propose following solution:

  • Create a helper script svg-convert with same syntax as rsvg-convert
  • Test whether lasem-render or rsvg-convert exist.
  • If lasem-render exists, calculate zoom factor and use lasem-render preferably.
  • Otherwise, use rsvg-convert.
  • Change the default $(SVG_CONVERT) to ./svg-convert

Once this issue is resolved, I'll update script template and start pushing icon sets I have on my shelve.

@Celti
Copy link
Author

Celti commented May 20, 2016

Submitted the requested script to tiliado-archives/nuvola-app-template#1 as a reasonable place to stage it out to the various integrations. Closing this and #13 (included in tiliado-archives/nuvola-app-template#1 for consolidation).

@Celti Celti closed this May 20, 2016
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