Realthunder's Link branch Snap packages

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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.
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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:
User avatar
ppd
Posts: 104
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post 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.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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?
User avatar
ppd
Posts: 104
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post 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?
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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 321 times
and:
Screenshot from 2022-05-25 11.17.09.png
Screenshot from 2022-05-25 11.17.09.png (63.93 KiB) Viewed 321 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:
User avatar
ppd
Posts: 104
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post 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
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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!
User avatar
bambuko
Veteran
Posts: 1548
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post 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?
Post Reply