Skip to content

为防止为WSL安装桌面 #40072

@bob123230

Description

@bob123230

我发现,网上太多WSL安装桌面的教程了,而这样就浪费了你们的匠心,所以,我提了这个issue。

在运行包括但不限于gnome-shell,gnome-session,xfce4-panel进程时,杀死他们。
首先,检查是不是session或者wm或者dm,只要是的,杀死。
随后,列一个黑名单,其中包括panel,desktop。包含在里面的,杀死。
最后,包括但不限于nautilus,thunar,gnome-text-editor,gedit,xfce4-appfinder的桌面独立组件不要杀死。

你说你们承诺过你们可以让用户用WSL做任何事情?
没事,可以设置一个WSL_RUN_DESKTOP环境变量,默认没有,有的时候,不再杀死桌面进程,但是警告内容如下:
中文:
警告:WSL不应安装桌面。
English:
Warning: Running a full desktop environment in WSL is not a recommended configuration and may cause significant performance degradation.
官网中应提及这一点。

最后,这样试试?说不定大家都不安装桌面了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions