Page 5 of 6

Re: Realthunder's Link branch Snap packages

Posted: Tue May 24, 2022 9:17 am
by bambuko
ppd wrote: Tue May 24, 2022 8:59 am ...I only tried with the official freecad snap and standard Nautilus in Ubuntu 22.04, and my file opened just fine...
Thank you!
I am downloading official FreeCAD snap to compare with Link branch
Will report back.

Re: Realthunder's Link branch Snap packages

Posted: Tue May 24, 2022 9:39 am
by bambuko
@ppd
As promised:
I have tested it with official main branch snap and (as you have said) it all works fine.

So my issue is Link branch snap specific :oops:

Re: Realthunder's Link branch Snap packages

Posted: Tue May 24, 2022 9:49 am
by ppd
@bambuko That's a great result. Now we have to compare both desktop files to find the culprit! If you're feeling extra helpful today, you can file an issue in realthunder's repo.

Re: Realthunder's Link branch Snap packages

Posted: Tue May 24, 2022 10:52 am
by bambuko
ppd wrote: Tue May 24, 2022 9:49 am @bambuko That's a great result. Now we have to compare both desktop files to find the culprit! If you're feeling extra helpful today, you can file an issue in realthunder's repo.
problem solved ;)
%F is missing from link branch .desktop file
Modifying it solves the issue
Issue on github:
https://github.com/realthunder/FreeCAD/ ... 1246368929

Re: Realthunder's Link branch Snap packages

Posted: Wed May 25, 2022 9:30 am
by bambuko
@ppd
sorry if it is a wrong place?
latest snap update looses icon because .desktop file points at .svg whereas the location it points to, only has .png :oops:
Should I mention it to @realthunder or you?

Re: Realthunder's Link branch Snap packages

Posted: Wed May 25, 2022 10:04 am
by ppd
@bambuko
So you're saying freecad-realthunder revision 34 (see snap info freecad-realthunder) does not have

Code: Select all

/snap/freecad-realthunder/current/usr/share/icons/hicolor/scalable/apps/freecad_link.svg
?

The desktop file references this icon:

Code: Select all

/var/lib/snapd/desktop/applications$ cat freecad-realthunder_freecad-realthunder.desktop 
[Desktop Entry]
X-SnapInstanceName=freecad-realthunder
Version=1.0
Name=FreeCAD Link Branch
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/freecad-realthunder_freecad-realthunder.desktop /snap/bin/freecad-realthunder
Icon=/snap/freecad-realthunder/34/usr/share/icons/hicolor/scalable/apps/freecad_link.svg
Type=Application
Categories=Engineering;
Comment=Feature based Parametric Modeler
Terminal=false
StartupNotify=true
NoDisplay=false
MimeType=application/x-extension-fcstd;
As you can see, I can't reproduce the issue. Or am I misunderstanding you?

Re: Realthunder's Link branch Snap packages

Posted: Wed May 25, 2022 10:23 am
by bambuko
sorry @ppd guess I am getting muddled again:
Screenshot from 2022-05-25 11.20.55.png
Screenshot from 2022-05-25 11.20.55.png (13.6 KiB) Viewed 1524 times
and:
Screenshot from 2022-05-25 11.17.09.png
Screenshot from 2022-05-25 11.17.09.png (63.93 KiB) Viewed 1524 times
my previous message about .png ve .svg was wrong
I am still with no icon though :oops:

later edit:
forget it - sorry
it is all OK now ... don't know what was going on :oops: :roll:

Re: Realthunder's Link branch Snap packages

Posted: Wed May 25, 2022 12:03 pm
by ppd
bambuko wrote: Wed May 25, 2022 10:23 am it is all OK now ... don't know what was going on :oops: :roll:
Maybe the snap was updated in the background and your manually copied desktop file pointed to a now outdated icon path.

Try replacing the revision number in your local desktop file with "current", i.e. Icon=/snap/freecad-realthunder/current/usr/share/icons/hicolor/scalable/apps/freecad_link.svg

Re: Realthunder's Link branch Snap packages

Posted: Wed May 25, 2022 12:27 pm
by bambuko
ppd wrote: Wed May 25, 2022 12:03 pm ...Try replacing the revision number in your local desktop file with "current", i.e. Icon=/snap/freecad-realthunder/current/usr/share/icons/hicolor/scalable/apps/freecad_link.svg
Yes, I guess that is what has solved the problem ;)
Thank you again for your help and patience!

Re: Realthunder's Link branch Snap packages

Posted: Thu May 26, 2022 4:12 pm
by bambuko
ppd wrote: Wed May 25, 2022 12:03 pm Maybe the snap was updated in the background and your manually copied desktop file pointed to a now outdated icon path.
No, it is not that :mrgreen:
worked it out today (because the same has happened with master snap) :ugeek:

What actually seem to be happening is that every time snap is updated one critical address is changed.
It doesn't matter if one uses .desktop from snap, but because I am using copied/modified version, this address doesn't get updated... :oops: :(

Code: Select all

Icon=/snap/freecad/40/usr/share/icons/hicolor/scalable/apps/org.freecadweb.FreeCAD.svg
40 is the thing that keeps changing as you update snap (this number differs for different snaps)

Now I know it is relatively simple matter to keep it updated manually, but.... there must be a better way?