[WSL2 Ubuntu22.04] 尝试使用 WSLg 运行 Elixir Desktop(未完成)

   2023-03-08 学习力0
核心提示:现状启用 WSLg 后,Elixir Desktop 会不会像在 Ubuntu 上一样工作?Elixir 桌面示例我试着跑步窗口显示并似乎在移动,但 Todo 应用程序未显示在窗口中。这是一个空白的显示。显示窗口和菜单。Extra 的内容也可以单独使用。如果您使用 Extra 的 Open Browser

现状

启用 WSLg 后,Elixir Desktop 会不会像在 Ubuntu 上一样工作?

Elixir 桌面示例我试着跑步

窗口显示并似乎在移动,但 Todo 应用程序未显示在窗口中。这是一个空白的显示。

【WSL2 Ubuntu22.04】 Elixir DesktopをWSLgで動かしてみる(未完成)

显示窗口和菜单。
Extra 的内容也可以单独使用。
如果您使用 Extra 的 Open Browser 打开浏览器,内容将显示在浏览器中。

有了 WSLg 和 systemd 的支持,它的工作方式似乎和原来的 Ubuntu 一样,但不幸的是它没有工作。

处理与 dbus 相关的错误

当 systemd 未运行时,我收到有关 dbus 的错误(默认情况下在 WSL2 中的 ubuntu 上不工作)。
尝试启用 systemd。

不支持旧版本。下面的版本没问题。

> wsl --version
WSL バージョン: 0.70.4.0
カーネル バージョン: 5.15.68.1
WSLg バージョン: 1.0.45
MSRDC バージョン: 1.2.3575
Direct3D バージョン: 1.606.4
DXCore バージョン: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windowsバージョン: 10.0.22621.675

修改 wsl.conf 并关闭 wsl。

/etc/wsl.conf
[boot]
systemd=true

执行结果

$ ./run
Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]


20:12:32.267 [info] Application eex started at :nonode@nohost

20:12:32.272 [info] Application mime started at :nonode@nohost

20:12:32.273 [info] Child Agent of Supervisor Plug.Crypto.Application started
Pid: #PID<0.281.0>
Start Call: Agent.start_link(#Function<0.131734154/0 in Plug.Crypto.Application.start_crypto_keys>)
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.276 [info] Application plug_crypto started at :nonode@nohost

20:12:32.277 [info] Child :telemetry_handler_table of Supervisor :telemetry_sup started
Pid: #PID<0.286.0>
Start Call: :telemetry_handler_table.start_link()
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.277 [info] Application telemetry started at :nonode@nohost

20:12:32.279 [info] Child Plug.Upload of Supervisor Plug.Application started
Pid: #PID<0.291.0>
Start Call: Plug.Upload.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.279 [info] Application plug started at :nonode@nohost

20:12:32.281 [info] Child :pg of Supervisor #PID<0.295.0> (Supervisor.Default) started
Pid: #PID<0.296.0>
Start Call: :pg.start_link(Phoenix.PubSub)
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.281 [info] Application phoenix_pubsub started at :nonode@nohost

20:12:32.281 [info] Application phoenix_view started at :nonode@nohost

20:12:32.287 [info] Child Phoenix.CodeReloader.Server of Supervisor Phoenix.Supervisor started
Pid: #PID<0.302.0>
Start Call: Phoenix.CodeReloader.Server.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker

20:12:32.287 [info] Child Phoenix.Transports.LongPoll.Supervisor of Supervisor Phoenix.Supervisor started
Pid: #PID<0.303.0>
Start Call: DynamicSupervisor.start_link([name: Phoenix.Transports.LongPoll.Supervisor, strategy: :one_for_one])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor

20:12:32.287 [info] Application phoenix started at :nonode@nohost

20:12:32.310 [info] Child :disk_log_sup of Supervisor :kernel_safe_sup started
Pid: #PID<0.304.0>
Start Call: :disk_log_sup.start_link()
Restart: :permanent
Shutdown: 1000
Type: :supervisor

20:12:32.311 [info] Child :disk_log_server of Supervisor :kernel_safe_sup started
Pid: #PID<0.305.0>
Start Call: :disk_log_server.start_link()
Restart: :permanent
Shutdown: 2000
Type: :worker
[error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
[warning] Could not start Phoenix live-reload because we cannot listen to the file system.
You don't need to worry! This is an optional feature used during development to
refresh your browser when you save files and it does not affect production.

Sass is watching for changes. Press Ctrl-C to stop.

[watch] build finished, watching for changes...
[notice] Connecting to UNIX socket: "/run/user/1000/bus"

[notice] DBUS auth: sending initial data

[notice] Got GUID 'e7e1fcc8ed85d4c36cfa796d635e3c2d' from the server

[notice] Succesfully negotiated UNIX FD passing

[notice] Calling "/"::"org.freedesktop.DBus".:Hello([])

[notice] Calling {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 1, 0, 1, 0, 1,
     [
       {1, "/"},
       {6, "org.freedesktop.DBus"},
       {2, "org.freedesktop.DBus"},
       {3, "Hello"}
     ]}, :undefined}
 ], ""}
[notice] Received {:dbus_message,
 {:dbus_header, 108, 2, 1, 1, 10, 1,
  [{6, ":1.16"}, {5, 1}, {8, "s"}, {7, "org.freedesktop.DBus"}]}, ":1.16"}

[notice] Received {:dbus_message,
 {:dbus_header, 108, 4, 1, 1, 10, 2,
  [
    {1, "/org/freedesktop/DBus"},
    {2, "org.freedesktop.DBus"},
    {3, "NameAcquired"},
    {6, ":1.16"},
    {8, "s"},
    {7, "org.freedesktop.DBus"}
  ]}, ":1.16"}

[notice] Hello connection id: ":1.16"

[notice] Calling {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 1, 0, 1, 34, 2,
     [
       {8, "s"},
       {1, "/org/freedesktop/DBus"},
       {6, "org.freedesktop.DBus"},
       {2, "org.freedesktop.DBus"},
       {3, "NameHasOwner"}
     ]}, "org.kde.StatusNotifierWatcher"}
 ], ""}
[notice] Received {:dbus_message,
 {:dbus_header, 108, 2, 1, 1, 4, 3,
  [{6, ":1.16"}, {5, 2}, {8, "b"}, {7, "org.freedesktop.DBus"}]}, false}

Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
                                                                                                             Interactive Elixir (1.14.0) - press Ctrl+C to exit (type h() ENTER for help)

dbus错误不再显示,但显示不变(内容不显示)

参考

https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
https://x410.dev/cookbook/wsl/sharing-dbus-among-wsl2-consoles/


原创声明:本文系作者授权爱码网发表,未经许可,不得转载;

原文地址:https://www.likecs.com/show-308632242.html

 
反对 0举报 0 评论 0
 

免责声明:本文仅代表作者个人观点,与乐学笔记(本网)无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
    本网站有部分内容均转载自其它媒体,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责,若因作品内容、知识产权、版权和其他问题,请及时提供相关证明等材料并与我们留言联系,本网站将在规定时间内给予删除等相关处理.

  • Ubuntu使用——15(thinkphp路由报错Non-static method think\Route::get() should not be called statically)
    Ubuntu使用——15(thinkphp路由报错Non-static
    在route.php中添加代码:use think\Route;Route::get('/',function (){return 'hello world';});在浏览器中输入http://localhost/tp5-git/public/index.php,报错:[8192] ErrorException in route.php line 13Non-static method think\Route::get() should n
    03-08
  • Ubuntu与Window双系统安装的注意事项
    Ubuntu与Window双系统安装的注意事项
      UBUNTU与WINDOW双系统安装的注意事项 由 匿名 (未验证) 提交于 2019-05-18 10:07:41登录 发表评论29 次浏览假定电脑里面已经存在了Window系统,安装另外一个Linux系统:第一:首先确定电脑里面的window系统引导方式电脑系统的引导方式分为:(1)传统
    03-08
  • Ubuntu 图形界面损坏修复方法!!!亲测有用!!!
    Ubuntu 图形界面损坏修复方法!!!亲测有用!
    1.现象今天做实验的时候打开Ubuntu虚拟机,输入密码之后发现变成这样:然后重新开机,到了输入密码界面不输入,而是输入快捷键CTRL+alt+F1,输入用户名+密码进入之后输入ls,发现我的文件还在,心想这不是系统炸了啊上网搜说是图形界面损坏于是重新来:(参考
    03-08
  • Ubuntu终端输入异常、无法退格(删除文本)、使用方向键命令
    Ubuntu终端输入异常、无法退格(删除文本)、使
    1 起因为了学习嵌入式开发安装去安装的ncurses库,使用命令:sudo apt-get install libncurses5-dev导致系统自带的ncurses-base被自动删除。2 出现的问题误删ncurses-base后导致终端输入窗口出现了一系列的问题:Ubuntu终端输入无法退格(删除文本)、使用↑
    03-08
  • Raspberry Pi (Ubuntu) 上的 VNC 无监视器
    Raspberry Pi (Ubuntu) 上的 VNC 无监视器
    超级方便的无监视器VNC方便的树莓派远程桌面操作,无需显示器\(^^)/通过在页面末尾设置“无显示器设置”,可以在启动树莓派之前和之后连接和断开 HDMI 显示器电缆(这很重要)。来自主 PC 的远程桌面环境树莓派 4Ubuntu 20.04(64位)服务器+桌面设置VNC 设
    03-08
  • 免费供个人使用最多3个! !我尝试注册 ESM 将 Ubuntu LTS 版本的支持期延长 5 年
    免费供个人使用最多3个! !我尝试注册 ESM 将
    我个人使用 Ubuntu 作为我的 Linux 机器的操作系统。 Ubuntu 有正常版本和 LTS(长期支持)版本的操作系统。至此,版本号奇数为普通版,偶数为LTS版,LTS版长期支持5年,而普通版有支持期半年左右。。由于Linux机器用作GPU服务器,由于驱动程序和库的兼容性等
    03-08
  • ubuntu中vi下删除键和上下左右键输入字符异常(
     刚安装的Ubuntu系统,使用vi编辑文本的时候,出现以下现象:点删除键输入了 D回车无效上下左右为字母光标乱跳 原因:自带的vi功能问题 解决:卸载原有vi,重新安装完整版本vim执行以下命令即可: sudo apt-get remove vim-common sudo apt-get install v
    02-10
  • ubuntu禁止ping操作(禁用ICMP协议访问) icmp
    ping命令是计算机之间进行相互检测线路完好的一个应用程序,计算机间交流数据的传输没有经过任何的加密处理,因此我们在用ping命令来检测某一个服务器时,可能在因特网上存在某个非法分子,为了安全我们把ping给禁止掉。通过专门的黑客程序把在网络线路上传输
    02-10
  • Ubuntu16配置静态IP ubuntu16.04配置静态ip
    一、静态IP地址配置sudo vi/etc/network/interfaces然后按照如下格式修改:注意这里的网卡名字是ens33auto loiface lo inet loopbackauto ens33iface ens33 inet staticaddress 192.168.1.106netmask 255.255.255.0gateway 192.168.1.1二、配置DNS#临时修改su
    02-10
  • 实战Ubuntu JeOS  8.04.1---VirtualBox篇
    实战Ubuntu JeOS 8.04.1---VirtualBox篇
    很久以前写的安装记录,内容太长,只贴几幅图[安装过程下载]:1.基本系统2.中文环境3.桌面环境OpenBox4.面板,主题菜单等安装过程下载
    02-10
点击排行