Flameshot

直接从仓库安装 flameshot

1
sudo apt install flameshot

要在 Wayland 下面可以复制粘贴图片还需安装:

1
sudo apt install xdg-desktop-portal xdg-desktop-portal-kde wl-clipboard

为了让 flameshot 在 wayland 和 x11 下都可以使用剪切板,可以编写一个小脚本:

1
2
3
4
5
if [[ $XDG_SESSION_TYPE == "wayland" ]] || [[ -n $WAYLAND_DISPLAY ]]; then
    flameshot gui -c --raw | wl-copy
else
    flameshot gui -c
fi

将这一个脚本压缩为一行:

1
[[ $XDG_SESSION_TYPE == "wayland" ]] || [[ -n $WAYLAND_DISPLAY ]] && flameshot gui -c --raw | wl-copy || flameshot gui -c

Flameshot 的 GitHub 仓库 Issue 里面有讨论这个问题

1
https://github.com/flameshot-org/flameshot/issues/2848

Neovim 剪切板

和上面的 Flameshot 需要 wl-clipboard 一样,在 X11 环境里面也需要:

1
sudo apt install xclip

迅雷

在优麒麟的仓库里面安装

1
https://mirrors.aliyun.com/ubuntukylin/pool/partner/com.xunlei.download_1.0.0.1_amd64.deb

安装之后尝试启动提示错误

1
error while loading shared libraries: libdbus-glib-1.so.2

从软件仓库直接安装缺失

1
sudo apt-get install libdbus-glib-1-2