heetbeet / juliawin

A portable Julia for Windows, bundled with VSCode, Pluto, Conda & PyCall, and more.
MIT License
55 stars 2 forks source link

Add linux version #32

Open heetbeet opened 3 years ago

heetbeet commented 3 years ago

Currently everything is windows specific and written in batch. Adding a linux (specifically debian/ ubuntu) version would entail writing all the glue in bash. This might actually be easier than expected, since most of the work was figuring out how to set up the whole environment.

What needs to happen

heetbeet commented 3 years ago

Here is an example of setting up a .desktop launcher that points to an executable relative to itself: testing.zip These launchers can even be symlinked to other locations and still work. This is handy for adding Juliawin to the launcher menu by simply symlinking the launchers to ~/.local/share/applications

Note that icons doesn't work that great. There isn't a way to have relative paths for the icons, you'll have to install the icons to the user's icon location: https://stackoverflow.com/a/63239653/1490584 . If you run this as a thumbdrive application, the icons will always be blank. Best would be to activate the icons as soon as you run any Juliawin application. Then at least the icons would appear after the first run.

This isn't actually as bad or intrusive as I initially though, considering that icons are small and harmless and wouldn't interfere with anything else, and that there are already thousands of icon on a linux distribution in any case. Five or so more wouldn't do any harm really. But it might raise concern with some users.