I recently upgraded from 16.04 to 20.04. I've been using Ubuntu for a while (obviously) but just as obviously I am no guru.
I don't place many icons on my desktop so the new limitations of GNOME in this regard didn't worry me too much. I do, however, have two spreadsheets that I enter info frequently into, so I've always put icons for these two on the desktop using soft links in the desktop folder. No surprise - that no longer works.
I've tried to create a .desktop
file with the idea that I could put it on the desktop as a launcher.
I created this ePayments.desktop
in ~/.local/share/applications
and it appears in Show Applications. When I click on it, LibreOffice starts to open but I only get an error that says:
/Bookkeeping/2020ePayments.ods does not exist
Here is the content of my ePayments.desktop
file:
[Desktop Entry]
Name=ePayments spreadsheet
Exec=xdg-open /mnt/Data/Bookkeeping/2020ePayments.ods
Comment=Open ePayments spreadsheet
Terminal=false
Type=Application
Icon=x-office-spreadsheet
$ ls -l /mnt/Data/Bookkeeping
-rwx------ 1 brent brent 96249 Jul 3 09:25 2020ePayments.ods
Thanks for any assistance!
Update
Eliah -
I inserted parameters from the file that you posted. The resulting .desktop
file is:
[Desktop Entry]
Name=ePayments spreadsheet
Exec=libreoffice --calc %U
Comment=Open ePayments spreadsheet
Terminal=false
Type=Application
Icon=libreoffice-calc
StartupNotify=true
X-GIO-NoFuse=true
I still get the same error message. Did I miss the point?
Solution from below.
Replace the Exec=
statement in the .desktop file above with:
Exec=xdg-open /mnt/Data/Bookkeeping/2020ePayments.ods
Note that the Exec=
statement was in my original .desktop file so one of the statements I added after Eliah's advice must have changed something.