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-terminal -e /usr/bin/julia %f --hold". "--hold" is 
used to keep the terminal open, and can be removed if you want
    - Select an icon if you want
- On the Appearance Conditions tab:
    - Select "Other files"
    - File Pattern (Optional) = Change to "*.jl" instead of "*"

Le jeudi 7 janvier 2016 10:51:29 UTC+1, Fred a écrit :
>
> 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 écrit :
>>
>> 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 program could be run in one click.
>>
>

Reply via email to