Sample Header Ad - 728x90

a question on `exec` parameter in .desktop file

3 votes
0 answers
515 views
I have installed Zotero with .tarball as suggested [here](https://www.zotero.org/support/installation) , and the following is what I encountered: 1. I can launch zotero in terminal with /opt/zotero/zotero 2. I **cannot** launch zotero by clicking on the default .desktop file, where the exec parameter is configured as bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U" 3. I can launch zotero in terminal with bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U" 4. I can launch zotero by clicking the .desktop file where I reconfigure the exec parameter to bash -c /opt/zotero/zotero I don't know why the second one doesn't work. Is it the problem due to an application level, desktop environment level or something else? BTW, I'm using the deepin v20.8 distribution.
Asked by sicheng mao (31 rep)
Apr 2, 2023, 10:36 AM