[GNC] create desktop icons for GNC 4.9 Flatpak on Ubuntu - solved

Jeff beastmaster126 at hotmail.com
Mon Apr 4 10:14:41 EDT 2022


Geert, don't ask me how I did it because I do not know but the new icon 
now works.

Just for kicks and grins I created a desktop file for LibreOffice Writer 
and it worked right the first time.  So then I edited my desktop icon 
for GNC and compared it to yours and couldn't see any differences except 
the path and data file name.  Renamed my file and copied yours into a 
text editor, changed the path and filename accordingly.  Saved it and 
right clicked the allow launching and it worked.

Working version (copied and edited from your post):

[Desktop Entry]
Type=Application
Terminal=false
Exec=flatpak run org.gnucash.GnuCash /media/jeffrey/'Mac 
Drive'/Ledgers/Dad/Dad.gnucash
Name=GnuCash 4.9 FLATPAK Dad
Comment=Manage home and small business accounts
Icon=/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/active/files/share/gnucash/pixmaps/gnucash-icon.ico

======
Non-working version:

[Desktop Entry]
Type=Application
Terminal=false
Exec=flatpak run org.gnucash.GnuCash /media/jeffrey/**'Mac 
Drive'/Ledgers/Dad/Dad.gnucash
Name=GnuCash 4.9 FLATPAK Dad
Comment=Manage home and small business accounts
Icon=/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/active/files/share/gnucash/pixmaps/gnucash-icon.ico 



To the naked eye they look identical but one works and the other does 
not.  Both are right clicked to allow launching.  The only difference I 
can see, now that I copied and pasted into this e-mail, is that the text 
width is different. I don't know if that has something to do with it or 
not (hidden high bit character that doesn't show up in Text Editor 
perhaps?).

I then created an icon for another set of books (which works) and 
checked the permissions for both.  They are not the same.  The copy of 
yours shows a check mark in the 'Allow executing file as program', the 
second one has a '-' .  My original had a check mark too.

Thank you!

-- 
--JEffrey Black M.B.A.

On 4/2/22 11:28 AM, Geert Janssens wrote:
> [Desktop Entry]
> Type=Application
> Terminal=false
> Exec=flatpak run org.gnucash.GnuCash /home/janssege/testfile.gnucash
> Name=GnuCash 4.9 FLATPAK Dad
> Comment=Manage home and small business accounts
> Icon=/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/active/files/
> share/gnucash/pixmaps/gnucash-icon.ico




More information about the gnucash-user mailing list