我正在尝试在 Opensuse 42.3 上安装Discord 应用程序。
我下载了tar.gz并提取了它的内容。然后我通过运行命令使discord.desktop
文件可执行sudo chmod +x ./Discord/discord.desktop
。
然后我双击该discord.desktop
文件,但它没有成功运行。下面是打开后的窗口截图:
我尝试从命令行启动 Discord,但收到以下错误:
:~> sudo chmod +x Downloads/Discord/discord.desktop
[sudo] password for root:
:~> ./Downloads/Discord/discord.desktop
./Downloads/Discord/discord.desktop: line 1: [Desktop: command not found
./Downloads/Discord/discord.desktop: line 4: unexpected EOF while looking for matching `''
./Downloads/Discord/discord.desktop: line 10: syntax error: unexpected end of file
discord.desktop 的内容是 -
rajkumar@linux-7owj:~> cat 下载/Discord/discord.desktop
[Desktop Entry]
Name=Discord
StartupWMClass=discord
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=/usr/share/discord/Discord
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
X-Session Errors 没有给出任何有用的结果。我在执行不和谐之前和之后都试过了
rajkumar@linux-7owj:~> tail -f ~/.xsession-errors
tail: cannot open '/home/rajkumar/.xsession-errors' for reading: No such file or directory
tail: no files remaining
以下是我的操作系统详细信息:
:~> lsb_release
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
通过使用 snap 安装 Opensuse 在 Opensuse 上启动不和谐时,会出现以下错误:
Gtk-Message: Failed to load module "canberra-gtk-module"
Discord 0.0.4
Starting updater.
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Module install path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules
[Modules] Module installed file path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules/installed.json
[Modules] Module download path: /home/tjiho/snap/discord/52/.config/discord/0.0.4/modules/pending
[11045:0219/154734.826940:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Noto Sans, sans
#0 0x000001e57c8e <unknown>
#1 0x000001e6a80b <unknown>
#2 0x00000198780d <unknown>
#3 0x00000198744f <unknown>
#4 0x000001988106 <unknown>
#5 0x000001972469 <unknown>
#6 0x000000b3271e <unknown>
#7 0x000000d87a03 <unknown>
#8 0x000003c22106 atom::api::WebContents::InitWithSessionAndOptions()
#9 0x000003c2298f atom::api::WebContents::WebContents()
#10 0x000003c2d886 atom::api::WebContents::Create()
#11 0x000003c3fb35 atom::api::Window::Window()
#12 0x000003c4164c atom::api::Window::New()
#13 0x000003be75f0 mate::internal::InvokeNew<>()
#14 0x000003be7780 mate::internal::Dispatcher<>::DispatchToCallback()
#15 0x7f388e3e6e6f <unknown>
#16 0x7f388e7f637b <unknown>
#17 0x7f388e7f5e39 <unknown>
#18 0x0c816f2843a7 <unknown>
Aborted (core dumped)
我能做些什么来解决这个问题?
您可以使用 flatpack 安装它:
然后注销并登录,您将安装 dicord
对于其他可能不想使用 flatpak 的人,您可能只是缺少 libc++1 包。我在 Ubuntu 上遇到了同样的问题。
同名包,OpenSuse 存在 libc++1
安装 libc++1:
须藤 zypper 安装
这是我在 Ask Ubuntu 上提供的答案:
使用 gzip 包 (Discord 0.0.4) 在 XUbuntu 16.04 上同样的问题。安装“libc++1”包并成功启动 Discord——不再有空窗口:
sudo aptitude 安装 libc++1
注意:我发现论坛帖子指出“libc++”是必需的,并安装了应包含 libc++ 的 clang 工具链包。这不起作用,所以我怀疑较新版本的 Discord 需要 libc++1 提供的较新 libc++