aseering / wsl_gui_autoinstall

Automatically install X Windows and PulseAudio within a WSL (Bash on Windows on Linux) environment
MIT License
84 stars 26 forks source link

cbwin/outbash for browser link clicking #3

Open fpqc opened 8 years ago

fpqc commented 8 years ago

Not sure if this is beyond the scope of your project, but if you install xilun's cbwin and use outbash to run any daemons on startup (instead of bash), this allows setting the default browser (by reconfiguring xdg-open) to "wstart : chrome" or "wstart : firefox" or the same for Opera or Vivaldi, which makes it so clicking links in a linux-side gui application will open the link in the Windows browser of your choice.

In my setup, I run

run.exe outbash.exe -c "urxvtd -q -o -f; DISPLAY=:0 xsettingsd"

on startup, which starts up the rxvt daemon and the xsettings daemon.

aseering commented 8 years ago

Hm... That's beyond what I originally had in mind for this project, but it also sounds really useful. Maybe there could be a second script that people can run if they want more integration?

fpqc commented 8 years ago

You could make it an optional section of this script, maybe? When I get home from work today, I'll copy your script's startup (since I still don't understand the syntax for batch files XD), and add in the xsettingsd, rxvt, outbash, etc startup stuff.