Tweak LOCPATH export to point to the snap root. #39

Merged
merged 1 commit into from Jan 30, 2017

Conversation

Projects
None yet
3 participants
Contributor

oSoMoN commented Jan 20, 2017

Allow snaps to override LOCPATH to point to a different location within the snap.

Makes sense!

Owner

didrocks commented Jan 30, 2017

Hey! This looks good (I have no clue of LOCPATH myself. Does it work for standalone apps? (those not depending on ubuntu-app-platform, but just desktop-qt5 for instance?).

Also, now that I'm back, I did merge and refactor the whole runtime logic, do you mind rebasing on that?

Small rebase requested

Tweak LOCPATH export to point to the snap root.
Allow snaps to override LOCPATH to point to a different location within the snap.

@oSoMoN oSoMoN changed the title from Remove spurious LOCPATH export. to Tweak LOCPATH export to point to the snap root. Jan 30, 2017

Contributor

oSoMoN commented Jan 30, 2017

I rebased on the latest changes in master, and took a slightly different approach, now that this export is no longer qt-specific:

  • replace $RUNTIME by $SNAP in the export, because the platform snaps don’t ship locale definitions anyway
  • prefix the export by "$LOCPATH:" , so if the snap uses a custom launcher that sets LOCPATH, that value will be preserved and honoured in priority

Looks like exactly what we need! Thanks, merging it :)

@didrocks didrocks merged commit 98873de into Ubuntu:master Jan 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment