2

Linux Lark GTK

 2 years ago
source link: https://ttys3.dev/post/linux-lark-gtk/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux Lark GTK

2021-03-11

:: 荒野無燈

:: Mod 2021-06-03(9f55e0f)

#lark  #gtk  #rust 

June 3, 2021

飞书原名叫 Lark.

有Mac, Windows 和 Web 版。

不过打开很多 Tab 的浏览器里找 飞书 的 Tab, 确实不太方便。于 Github 找到一个 用 Electron 包了一下 飞书 Web 的客户端。

使用 electron builder 构建 AppImage / ArchLinux .pkg.tar.xz / rpm / deb 包等还是非常方便, electron builder 实际上采用的是一个基于 ruby 的打包工具,叫 fpm

不得不说Electron的工具还是蛮完善的。

有两个小问题:

  1. 隐藏到托盘后没法显示了。
  2. 点击消息里的链接,是用的 Electron 打开的,而不是调用的系统默认浏览器。

但是,老灯使用一段时间后发现了 node.js Electron 版的飞书最大的一个问题是,连续跑几天,会导致 GNOME 桌面的所有窗体的标题文字不见了。 由于短时间无法重现,导致问题也很难排查。

最张,老灯没办法,自动操刀用学了几天的 Rust 写了一个 GTK 版的 lark-gtk

老灯已经上传新的 release 在这 https://github.com/ttys3/lark-for-linux/releases/tag/v0.5.1

https://www.electron.build/configuration/linux

https://github.com/jordansissel/fpm/wiki#usage

https://gtk-rs.org/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK