<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: fquinner</title>
    <description>The latest articles on DEV Community by fquinner (@fquinner).</description>
    <link>https://dev.to/fquinner</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F96469%2Ff39a22c8-6d3f-40d1-88d9-3f6c7707b56b.jpeg</url>
      <title>DEV Community: fquinner</title>
      <link>https://dev.to/fquinner</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fquinner"/>
    <language>en</language>
    <item>
      <title>Windows 10 as a Linux Window Manager with WSL2</title>
      <dc:creator>fquinner</dc:creator>
      <pubDate>Sat, 12 Dec 2020 18:51:46 +0000</pubDate>
      <link>https://dev.to/fquinner/windows-10-as-a-linux-window-manager-with-wsl2-14f7</link>
      <guid>https://dev.to/fquinner/windows-10-as-a-linux-window-manager-with-wsl2-14f7</guid>
      <description>&lt;h2&gt;
  
  
  So on Windows 10, this is how I roll
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcascadium%2Fwsl-windows-toolbar-launcher%2Fraw%2Fmaster%2Fassets%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcascadium%2Fwsl-windows-toolbar-launcher%2Fraw%2Fmaster%2Fassets%2Fdemo.gif" alt="Windows Toolbar for Linux Demo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes those GUI windows are all Linux apps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why in the name of all that is Sacred?
&lt;/h2&gt;

&lt;p&gt;Well it's actually not that complicated. I love Linux. I really do. Always have, always will. If it was my choice, I would never touch Windows because it's just not as developer friendly, and I'm a professional developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  But..?
&lt;/h2&gt;

&lt;p&gt;But sometimes you want to run Office. And sign on to corporate services. And... you know... print and screencast during meetings. Although you can usually do all of those things on Linux, it usually involves more effort than I'm willing to invest these days. Not because of Linux, I hasten to emphasize, but because Windows and (occasionally) Mac are the only operating systems that most peripheral vendors care about these days. Which means things tend to work out of the box. And this is a productivity machine after all.&lt;/p&gt;

&lt;h2&gt;
  
  
  So this is just another WSL tutorial?
&lt;/h2&gt;

&lt;p&gt;Not quite... it's more of a brain dump of what I did, the project that I maintain, and how you can run every Linux UI application in a sensible way &lt;em&gt;alongside&lt;/em&gt; windows. This particular solution is focused on WSL 2, but will also work on WSL 1.&lt;/p&gt;

&lt;p&gt;I won't be doing a hand-holding tutorial (not at this point at least). This is more of a show and tell / introduction to my toolbar project.&lt;/p&gt;

&lt;h2&gt;
  
  
  And the catch?
&lt;/h2&gt;

&lt;p&gt;This solution does not seem to play nicely with resume from suspend / hibernate... however a workaround for this does exist, which I may write about later...&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I get access to this wizardry?
&lt;/h2&gt;

&lt;p&gt;I'll not get into the details here but it's all documented on the &lt;a href="https://github.com/cascadium/wsl-windows-toolbar-launcher" rel="noopener noreferrer"&gt;github repository&lt;/a&gt; (which you are welcome to star). If you can't get it working, raise and issue and I'll help if I can.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why did you set this up?
&lt;/h2&gt;

&lt;p&gt;I started the project because I use C applications that target a linux environment a lot and although remote development has come a long way, it is still in my opinion pretty awful. Things like debuggers misbehaving, sessions getting scrambled, synchronization breaking, plugins not working when remote etc always seem to be there (for me at least). So this is effectively &lt;em&gt;local linux development on windows&lt;/em&gt;. Or more practically, using Windows as a window manager for Linux.&lt;/p&gt;

&lt;p&gt;Since WSL 2 in particular this was a big deal. With WSL 1 many things worked but not everything. WSL 2 looks and feels like proper linux and you always have much more confidence that your stuff will run well than you ever had with WSL 1.&lt;/p&gt;

&lt;p&gt;At first I searched for a tool to let me launch WSL Linux GUI applications more natively from Windows and there are things for creating shortcuts etc. but they all seemed to be a little hacky for my taste.&lt;/p&gt;

&lt;p&gt;So I started writing the project (which literally just generates windows shortcuts to WSL commands) and posted it to twitter with a few hashtags, created a reddit post, and answered a stackoverflow answer or two pointing to the repository.&lt;/p&gt;

&lt;p&gt;To my surprise since it's launch almost a year ago it is up to 250 stars on Github, it is regularly downloaded in pypi and it's definitely in active use since I get issues raised regularly and even some contributions back!&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;This is my first post to dev.to so please be gentle... but the story here is not so much a "build it and they will come" story. Because all too often they don't come at all!&lt;/p&gt;

&lt;p&gt;It's just a story of what I did - I wanted a problem solved, I solved it, I shared it, and now others use it too. And it feels pretty cool I highly recommend it - even if they don't come :).&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>development</category>
    </item>
  </channel>
</rss>
