{"id":266,"date":"2024-07-14T18:43:00","date_gmt":"2024-07-14T10:43:00","guid":{"rendered":"https:\/\/ourblog.duothinking.com\/?p=266"},"modified":"2025-11-06T12:27:10","modified_gmt":"2025-11-06T04:27:10","slug":"wsl2-gui-%e8%a7%a3%e6%9e%90%e5%ba%a6%e7%b8%ae%e6%94%be%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/ourblog.duothinking.com\/?p=266","title":{"rendered":"WSL2 GUI \u89e3\u6790\u5ea6\u7e2e\u653e\u554f\u984c"},"content":{"rendered":"\n<p>\u500b\u4eba\u6700\u559c\u6b61\u7684 Windows 10 \u65b0\u589e\u529f\u80fd\u5c31\u662f WSL (Windows Subsystem  for Linux)\u3002\u800c WSL2 \u9084\u52a0\u5165\u4e86 GUI \u652f\u63f4\uff08\u900f\u904e\u4e00\u500b\u540d\u70ba WSLg \u7684\u65b0\u529f\u80fd\uff09\u3002\u4f46\u662f\u5728\u9ad8\u89e3\u6790\u5ea6\u756b\u9762\u4f7f\u7528 Linux GUI \u537b\u6703\u9047\u5230\u756b\u9762\u7e2e\u653e\u6bd4\u4f8b\uff08scaling\uff09\u7684\u554f\u984c\u3002<\/p>\n\n\n\n<p>\u9ad8\u89e3\u6790\u5ea6\u756b\u9762\u5728\u5927\u87a2\u5e55\u4e0a\uff08\u4f8b\u5982 4K on 32&#8243; monitor\uff09\u90fd\u4e0d\u662f\u554f\u984c\u3002\u4f46\u662f\u5728\u7b46\u96fb\u5c0f\u87a2\u5e55\u4e0a\uff0c\u9ad8\u89e3\u6790\u5ea6\u756b\u9762\u5982\u679c\u7dad\u6301 1:1 \u7684\u7e2e\u653e\u6bd4\u4f8b\uff0c\u5b57\u9ad4\u5c0f\u5230\u4e0d\u9069\u5408\u65e5\u5e38\u4f7f\u7528\u3002\u5728 Windows \u7684\u986f\u793a\u8a2d\u5b9a\u53ef\u4ee5\u5c07\u6bd4\u4f8b\u653e\u5927\u3002\u4f46\u662f WSLg \u537b\u9084\u4e0d\u652f\u63f4\u6309\u7167 Windows \u7684\u8a2d\u5b9a\u653e\u5927 GUI\u3002\u5c0e\u81f4\u5728 WSL \u555f\u52d5\u7684\u5716\u5f62\u7a0b\u5f0f\u7684\u756b\u9762\u5b57\u9ad4\u90fd\u4e0d\u6703\u653e\u5927\u3002<\/p>\n\n\n\n<p>\u76ee\u524d\u7684\u89e3\u6c7a\u8fa6\u6cd5\u9084\u6eff\u6280\u8853\u6027\u7684\u3002\u53c3\u8003\u4f86\u6e90 <a href=\"https:\/\/github.com\/microsoft\/wslg\/issues\/590\">https:\/\/github.com\/microsoft\/wslg\/issues\/590<\/a><\/p>\n\n\n\n<!--more-->\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728 user profile \u4e0b\u5efa\u7acb\u4e00\u500b\u540d\u70ba .wslgconfig \u7684\u6a94\u6848\u3002\u5207\u63db\u5230 user profile \u53ef\u4ee5\u7528 %USERPROFILE% \u6216\u662f\u5728 Powershell \u88e1\u9762\u57f7\u884c $env:USERPROFILE<\/li>\n\n\n\n<li>\u5728 .wslgconfig \u88e1\u9762\u6dfb\u52a0\u4ee5\u4e0b\u5167\u5bb9<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;system-distro-env]\nWESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=200<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>\u5148\u95dc\u9589\u6240\u6709\u555f\u52d5\u7684 WSL \u5f8c\uff0c\u958b\u555f Powershell \u57f7\u884c<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --shutdown<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>\u91cd\u65b0\u555f\u52d5 WSL<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u500b\u4eba\u6700\u559c\u6b61\u7684 Windows 10 \u65b0\u589e\u529f\u80fd\u5c31\u662f WSL (Windows Subsystem for Lin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-22"],"_links":{"self":[{"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":2,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ourblog.duothinking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}