Greetings to everyone reading this. I’ve created a .desktop file with the contents below, put it in the folder .local/share/applications, and made it executable.
[Desktop Entry]
Name=My Spreadsheet
Comment=Shortcut to My Spreadsheet
Exec=/home/host/Documents/myspreadsheet.xlsx
Icon=libreoffice-calc
Terminal=false
Type=Application
The spreadsheet icon shows up in the Gnome applications and it can even be pinned to the dash, but when the icon is clicked, nothing happens or opens.
If I run the command below in the terminal, the spreadsheet opens:
libreoffice /home/host/Documents/myspreadsheet.xlsx
Does anyone know, how to make this work?