cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.1k stars 109 forks source link

Error sourcing `palettes/sweetie16.palette`: "palettes/sweetie16.palette" not found #8

Closed vi closed 5 years ago

vi commented 5 years ago

Something seems missing after cargo install.

Probably some basic palette should be embedded into executable with include_bytes!() or whatever to make it self-sufficient.

Alternatively (maybe better), entire config from git may be zipped and embedded into rx executable and unpacked on first start if $XDG_CONFIG_HOME/rx is missing.

cloudhead commented 5 years ago

That's an interesting idea :thinking:

For now, you can download the palette from https://cloudhead.io/rx/palettes/ into ~/.config/rx/palettes

karuppiah7890 commented 5 years ago

@cloudhead I also get this error even after putting the default sweetie16 palette in the ~/.config/rx/palettes directory. But when my current working directory is ~/.config/rx/ it works fine.

cloudhead commented 5 years ago

@karuppiah7890 can you tell me what OS are you on, and if you're on master or v0.1.0?

karuppiah7890 commented 5 years ago

I tried it with master and 0.1.0 too. Looks like only current working directory config is being taken somehow. I don't know rust so not able to understand how to go about the issue and debug it

karuppiah7890 commented 5 years ago

Also, I have never worked with a pixel editor before, this was my first time. This looks so cool ! :D and I wanted to mention that master works well. 0.1.0 didn't save a GIF for me, even though I saved it as .gif, it instead stored PNG I think, but master saved a GIF and I was able to see the animation 😁

cloudhead commented 5 years ago

The palette is now inlined in the init.rx which is embedded in the binary, so this should be solved.

@karuppiah7890 if you have related issues, please open a new issue : )