
我嘗試過創建一個桌面條目。我可以看到它,但是當我單擊它時,它會在文字編輯器中打開。桌面入口內容:
[Desktop Entry]
Encoding=UTF-8
Name=Link to Ask Ubuntu[Desktop Entry]
Encoding=UTF-8
Name=Link to Ask Ubuntu
Type=Link
URL=http://www.askubuntu.com/
Icon=text-html
Type=Link
URL=http://www.askubuntu.com/
Icon=text-html
我使用的是 Ubuntu 19.04。
答案1
嘗試包含以下行:
Exec=/usr/bin/x-www-browser file:///<PATH TO FILE>/file.html