Ubuntu系统解决AnyDesk开机启动问题

2022-04-24
#Unix

1. 问题描述

AnyDesk开机不能自动启动,错误为:

Gtk-Message: 12:58:56.932: Failed to load module "canberra-gtk-module"

(anydesk:2240): Gtk-CRITICAL **: 12:58:56.959: IA__gtk_widget_set_tooltip_markup: assertion 'GTK_IS_WIDGET (widget)' failed

(anydesk:2240): Gtk-CRITICAL **: 12:58:56.961: IA__gtk_widget_set_tooltip_markup: assertion 'GTK_IS_WIDGET (widget)' failed

(anydesk:2240): Gtk-CRITICAL **: 12:58:56.980: IA__gtk_signal_connect_full: assertion 'GTK_IS_OBJECT (object)' failed

(anydesk:2240): Gtk-CRITICAL **: 12:58:56.980: IA__gtk_signal_connect_full: assertion 'GTK_IS_OBJECT (object)' failed

2. 问题解决

$ sudo apt-get install libcanberra-gtk-module
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libcanberra-gtk0
The following NEW packages will be installed:
  libcanberra-gtk-module libcanberra-gtk0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.8 kB of archives.
After this operation, 92.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.ustc.edu.cn/ubuntu focal/universe amd64 libcanberra-gtk0 amd64 0.30-7ubuntu1 [7,916 B]
Get:2 http://mirrors.ustc.edu.cn/ubuntu focal/universe amd64 libcanberra-gtk-module amd64 0.30-7ubuntu1 [9,904 B]
Fetched 17.8 kB in 0s (176 kB/s)             
Selecting previously unselected package libcanberra-gtk0:amd64.
(Reading database ... 158884 files and directories currently installed.)
Preparing to unpack .../libcanberra-gtk0_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk0:amd64 (0.30-7ubuntu1) ...
Selecting previously unselected package libcanberra-gtk-module:amd64.
Preparing to unpack .../libcanberra-gtk-module_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra-gtk-module:amd64 (0.30-7ubuntu1) ...
Setting up libcanberra-gtk0:amd64 (0.30-7ubuntu1) ...
Setting up libcanberra-gtk-module:amd64 (0.30-7ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...

打开在Show ApplicationsStartup Applications Preferences,编辑为:

/usr/bin/anydesk

参考