首页 > 解决方案 > 如何在 chromebook 中从 .Desktop 文件为 linux 启动 Qt 应用程序?

问题描述

我在从 chromebook 中的 .desktop 文件启动 linux 的 Qt 应用程序时遇到了问题。谁能帮我解决这个问题。

下面我提到了我正在使用的 linux 版本:

**PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"**

我像这样创建了 .desktop 文件。如果我在创建 .desktop 文件时出错,任何人都可以纠正我

**[Desktop Entry]
Encoding=UTF-8
Version=1.0
Terminal=false
Name=XYZ
Comment=trayIconCreation
Exec= Executable with full path
Icon=Icon with full path
Type=Application**

下面我提到了我面临的问题:

当我单击桌面图标启动应用程序时,它对我不起作用。但如果我尝试通过终端启动应用程序,它工作正常。谁能指导我解决这个问题

标签: linuxqtchromebook

解决方案


推荐阅读