ubuntu 24 运行shutter失败 启动后直接闪退

效率工具 qmt 1℃

shutter是一款开源的屏幕截图软件和编辑图片软件.

他比默认的系统截图的功能强大. 最主要系统的截图软件截取的图片名字是带有空格的. 不利于markdown上传图片.

而最新的ubuntu下默认的桌面是wayland, 而shutter之前支持的是xorg,在wayland下的兼容性不好. 启动后即报错,崩溃.

shutter是个开源软件,在github的issue看到,目前最新版本是在ubuntu wayland是有兼容性问题. 并且snap仓库中最新版本并没有修复.

解决办法有2种.

第一种:

切换会xorg桌面. 启动ubuntu的时候,登陆用户名的时候,右下角有一个桌面session, 默认是ubuntu, 也就是wayland, 点击选择xorg. 然后登录.

这样在xorg桌面下启动shutter, 就可以正常使用了.

第二种:

使用shutter官方github提供的一个修复版本.

That's a bug which is fixed in Git but not released yet. You can download the current snapshot from here: https://github.com/shutter-project/shutter/archive/refs/heads/master.zip Just unpack it somewhere, then either launch it from the unpacked directory or install it as described here: https://shutter-project.org/downloads/source-code/

In both cases you will need libmoo-perl as additional dependency. In case that you want to properly install Shutter, you also need to remove the Shutter package which you have installed through package management first.

我帮你提取出来.

https://github.com/shutter-project/shutter/archive/refs/heads/master.zip

下载这个编译好的文件,解压, 到里面的bin文件夹下的shutter文件,在termimal下运行: ./shutter

就可以正常启动shutter了.

如果启动失败, 可能是相关依赖有问题. 按照下面的命令修复:

sudo apt install libmoo-perl

不过正常启动的shutter的截图功能不是完整的, 只能截取全屏,无法自由选择框框,也是很鸡肋的.

喜欢 (0)