samth changed the topic of #racket to: Racket v7.4 has been released: https://blog.racket-lang.org/2019/08/racket-v7-4.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
conceivably has joined #racket
<conceivably> Hi :) I'm trying to get Racket to use firefox-nightly instead of firefox as a default browser by setting the external browser in the DrRacket preferences to Command Line: firefox-nightly. This doesn't work. Any ideas what I might be doing wrong?
<erkin> conceivably: Are you on Unix?
<conceivably> Yep, Linux
<erkin> IIRC DrRacket uses the unix-browser-list variable of net/sendurl.
<erkin> You can check if firefox-nightly is there.
<erkin> And I believe that variable is based on your XDG application data.
<conceivably> xdg-open on the command line correctly uses firefox-nightly :/
<erkin> What does the unix-browser-list variable hold?
<conceivably> Ah that's only '(firefox)
<erkin> Hmm, maybe I'm misremembering the part about XDG. After all, not all Unices use Freedesktop standards.
FreeFull has quit []
<erkin> Oh it's just a hardcoded list of graphical Unix browsers known to work.
<erkin> You can override it with your custom value with (external-browser '("firefox-nightly" ""))
<erkin> err, "firefox-nightly " *
<erkin> eugh, I mean '("firefox-nightly " . "")
<erkin> It just concatenates the strings around the URL you pass to send-url, so you can add arguments to it before calling it from shell.
<conceivably> I see, thanks. How would I make this change global?
<erkin> You can add it to your ~/.racket/racket.prefs.rktd config with put-preferences.
<erkin> In this case, (put-preferences '(external-browser) '(("firefox-nightly " . "")))
<conceivably> Ah perfect. Great, thank you so much for your help :)
<erkin> No problem. :-)
<erkin> A beautiful part of Racket is that everything is in Racket, so programs like DrRacket work transparently, using the same functions the user would use in a repl. It just calls get-preference to pull config from racket.prefs.rktd.
<erkin> Similarly, you can do put-preferences to do what DrRacket does when saving your settings.
<conceivably> That is quite nifty. Feels a bit like Emacs.
<erkin> Yeah exactly!
ZombieChicken has quit [Ping timeout: 250 seconds]
vraid has quit [Ping timeout: 265 seconds]
integralyogin has quit [Remote host closed the connection]
conceivably has quit [Remote host closed the connection]
libertyprime has joined #racket
conceivably has joined #racket
pmatos has joined #racket
libertyprime has quit [Ping timeout: 240 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
Lowl3v3l has quit [Quit: Leaving.]
zmt01 has joined #racket
zmt00 has quit [Ping timeout: 245 seconds]
iyzsong has joined #racket
pera has quit [Quit: leaving]
ZombieChicken has joined #racket
Arcaelyx has quit [Quit: Arcaelyx]
dddddd has quit [Remote host closed the connection]
libertyprime has joined #racket
modula has joined #racket
defaultxr has quit [Ping timeout: 250 seconds]
modula is now known as defaultxr
_whitelogger has joined #racket
orivej has joined #racket
_whitelogger has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
_whitelogger has joined #racket
endformationage has quit [Ping timeout: 240 seconds]
_whitelogger has joined #racket
revtintin has joined #racket
conceivably has quit [Ping timeout: 252 seconds]
conceivably has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
orivej has quit [Ping timeout: 240 seconds]
conceivably has quit [Remote host closed the connection]
ZombieChicken has quit [Quit: WeeChat 2.6]
casaca has quit [Ping timeout: 264 seconds]
orivej has joined #racket
Lowl3v3l has joined #racket
YuGiOhJCJ has joined #racket
FreeFull has joined #racket
defaultxr has quit [Ping timeout: 240 seconds]
revtintin has quit [Quit: WeeChat 1.9.1]
pmatos has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #racket
keep-learning[m] has joined #racket
orivej has quit [Ping timeout: 252 seconds]
fanta1 has joined #racket
libertyprime has quit [Quit: leaving]
libertyprime has joined #racket
libertyprime has quit [Client Quit]
libertyprime has joined #racket
orivej has joined #racket
olavx200 has quit [Read error: Connection reset by peer]
keep-learning[m] has quit [Read error: Connection reset by peer]
MrAxilus has quit [Read error: Connection reset by peer]
BitPuffin has quit [Read error: Connection reset by peer]
BitPuffin has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
MrAxilus has joined #racket
olavx200 has joined #racket
lavaflow has quit [Ping timeout: 240 seconds]
dddddd has joined #racket
libertyprime has quit [Quit: leaving]
lavaflow has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
efm has quit [Ping timeout: 276 seconds]
fanta1 has quit [Quit: fanta1]
efm has joined #racket
siel has joined #racket
acarrico has quit [Ping timeout: 265 seconds]
fanta1 has joined #racket
orivej has quit [Ping timeout: 240 seconds]
ziyourenxiang_ has quit [Ping timeout: 240 seconds]
jsomedon has quit [Ping timeout: 265 seconds]
jsomedon has joined #racket
endformationage has joined #racket
mzan has joined #racket
fanta1 has quit [Quit: fanta1]
orivej has joined #racket
m1dnight_ has quit [Ping timeout: 240 seconds]
m1dnight_ has joined #racket
moldybits has quit [Quit: WeeChat 2.4]
ubLIX has joined #racket
defaultxr has joined #racket
parsley-dev has joined #racket
acarrico has joined #racket
wingsorc has joined #racket
parsley-dev has quit [Remote host closed the connection]
ZombieChicken has joined #racket
ubLIX has quit [Quit: ubLIX]
wingsorc has quit [Quit: Leaving]
efm has quit [Ping timeout: 240 seconds]
efm has joined #racket
manualcrank has joined #racket
Fernando-Basso has quit [Remote host closed the connection]
pera has joined #racket
mzan has quit [Quit: Leaving]
ziyourenxiang_ has joined #racket