How can I specify an icon with a RELATIVE path for a Linux desktop entry file?

后端 未结 3 1705
梦谈多话
梦谈多话 2021-02-05 10:04

For one of my Linux applications, I have the application binary, a launcher.sh script (for the LD_LIBRARY_PATH) and a .desktop file, all in the same folder.

I\'d like to

3条回答
  •  清歌不尽
    2021-02-05 10:37

    You can use echo $(echo ~) to use command output or echo $(echo $var) for variables

    For example:

    echo "Icon=$(echo ~)/Pictures/Icons/whatsapp-webapp.svg" > path/to/file.desktop 
    

    If you are interested in multi line echo command check out this link

提交回复
热议问题