View Ticket
Not logged in
Ticket Hash: 07797975353c83b80bbfe72d5f30d6309a568485
Title: Use a HOME/.undroidwishrc file to set sdl configuration values
Status: Closed Type: Feature_Request
Severity: Minor Priority: Medium
Subsystem: Resolution: Works_As_Designed
Last Modified: 2019-05-18 10:36:42
Version Found In:
User Comments:
anonymous added on 2019-05-17 12:01:22:
It would be very user friendly to have undroidwish read a HOME/.undroidwishrc, if it exists, and set sdl configuration options as if they were given on the command line.

Thanks!
dzach

chw added on 2019-05-17 17:48:40:
That is partly implemented when you bundle an undroidwish app with
application code embedded into it's zipfs, see the last section
in [ZIP virtual file system].

anonymous added on 2019-05-17 23:57:42:
I suppose this means undroidwish should be recompiled when there is need for a change to the sdl configuration.

Looking in the directory tree of the source code, I see that the assets/app dir is missing. So I created it and populated it as per the instructions, but `build-undroidwish-linux64.sh` does not copy the contents of it to the build dir. So here is an one line monkey-copy patch that copies the dir and the files, and make it work:

1721a1722
>   cp -rp ${AWDIR}/assets/app* assets

Thanks!

chw added on 2019-05-18 04:18:57:
The overall idea of the zipfs stuff is to not require recompiling
but to use an undroidwish/vanillawish as template and to incrementally
add an app. That's the purpose of "zipfs mkimg", i.e. you take the
distributed zipfs add an app directory, re-zip it and glue it to the
base binary.

anonymous added on 2019-05-18 09:43:20:
Ah, that makes it a lot easier. Packing an app with just what is needed feels also very intuitive doing it this way. Thank you!

chw added on 2019-05-18 10:36:42:
So let us close this ticket now.