[julia-users] One click execution of Julia program

2016-01-06 Thread Fred
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

Re: [julia-users] One click execution of Julia program

2016-01-06 Thread Abel Siqueira
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

Re: [julia-users] One click execution of Julia program

2016-01-06 Thread Fred
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

Re: [julia-users] One click execution of Julia program

2016-01-06 Thread elextr
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

Re: [julia-users] One click execution of Julia program

2016-01-07 Thread Fred
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

Re: [julia-users] One click execution of Julia program

2016-01-07 Thread Fred
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

Re: [julia-users] One click execution of Julia program

2016-01-07 Thread Fred
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