GiovineItalia / Gadfly.jl

Crafty statistical graphics for Julia.
http://gadflyjl.org/stable/
Other
1.9k stars 250 forks source link

Gadfly pop up not working in Ubuntu - workaround #1619

Open nomadbl opened 1 year ago

nomadbl commented 1 year ago

I Came here to document this problem and a workaround. The problem is not with Gadfly per se, but rather the way Gadfly interacts with applications by writing to /temp and then running that file through xdg-open (shell command).

The root of the problem is that in Ubuntu 22.04, the default way to use firefox is with snap packages that cannot access the /temp folder.

The work-around: set your temp folder to your home folder by adding this line to the end of your .bashrc file:

export TMPDIR=$HOME/temp/
Mattriks commented 1 year ago

Also you can make Gadfly plots open in other software: https://discourse.julialang.org/t/can-i-choose-display-software/29510