Hi !
I would like to know if it is possible to execute a julia program just by
clicking on the program name on GNU/Linux (of course after a chmod +x
program.jl).
I manage to do that in bash using
#!/usr/bin/bash
or in Perl
#!/usr/bin/perl
but in Julia I try to insert the lines :
#!/usr/bi
Julia is on `/usr/local/bin` in my system. Verify if the path is correct
with `which julia`.
Using the correct path I managed to run it on the terminal as you would the
other scripts.
I did not manage to run it clicking on the program name, but I couldn't do
it with a simple bash
script also. I us
Hi Abel
on my system I have :
$ which julia
/usr/bin/julia
Le mercredi 6 janvier 2016 19:06:13 UTC+1, Abel Siqueira a écrit :
>
> Julia is on `/usr/local/bin` in my system. Verify if the path is correct
> with `which julia`.
> Using the correct path I managed to run it on the terminal as yo
Works for me.
Note that when you run by clicking there is nowhere for the output of the
`println` to show, and standard input will be closed so the `readline`
returns EOF immediately, so it might look like it didn't run.
My system offers an option to "run in terminal" when I double click which
That's true, it seems to be related to the system.
On my system, lightweight (XFCE), a double click open any executable Julia
program in a text editor and I don't have the choice to execute in a
terminal.
But, if I run the program in a terminal using ./program.jl it works,
indicating that the p
I solved the problem :)
In XFE (http://roland65.free.fr/xfe/) associate .jl files
with /usr/bin/julia allows one click execution of Julia programs :)
In Thunar, it seems to be much more difficult
: https://bbs.archlinux.org/viewtopic.php?id=194464
Le jeudi 7 janvier 2016 10:29:57 UTC+1, Fred a
In Thunar :
Create a custom action within Thunar which will execute your shell script
in a terminal window. Open Thunar > Edit > Configure custom actions... >
Add a new custom action, then:
- On the Basic Tab:
- Name = ExecuteJulia
- Description = ExecuteJulia
- Command = "xfce4-te