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

Re: Realthunder's Link branch Snap packages

Post by ppd »

I tested with external links. The problem is that you're accessing the file through the document portal for some reason. This usually happens for files the snap has no access to. In this case, only the selected file gets exposed to the snap (like e.g. in Android). It won't see other files in the main file's vicinity.

If you're accessing a local path in your home directory though, it should _not_ use the document portal, but return the actual path. Why this is the case for you, I don't know.
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: 2114
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

It may be something to do with my distro?
https://elementary.io/
ubuntu 20.04 LTS based
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post by ppd »

The solution to the assembly with external links problem is described here: https://github.com/realthunder/FreeCAD_ ... 1022043527

You can force FreeCAD to use the internal file dialog instead of the portal's file dialog, which is uglier, but only works with real paths and attempts no proxying of files. It will then behave like an AppImage would.
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: 2114
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

Many thanks for your support!
I now have an option of using either appimage or snap (for both master and link branch) or even flatpak ( master branch only).

I am keeping both snap and appimage (on separate Linux installations) to see how the experience compares long term

I thought it would be good to discuss relative merits of each solution as far as using FreeCAD is concerned:
https://forum.freecadweb.org/viewtopic.php?f=8&t=65691
to help people to making choice?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2114
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: ping...
Quick question please.
With me running both snap and appimage it would be great to customise system icons to easily know which of the two I am about to fire ;)
I can easily customise appimage (OS integration is done by myself, so I know where things are and how to modify them), but snap is proving a challenge.
Can you help, please?

Code: Select all

OS: elementary OS 6.1 Jólnir (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 2022.430.26244 +4758 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: b024b876480a533018fdc702145e9e38f8c54ba6
Python version: 3.9.12
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
and the one I don't know how to customise :oops: :(

Code: Select all

OS: Ubuntu Core 20 (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 2022.512.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.05.12-edge)
Hash: 8f837b53c108a2444535be2604fdf31170dcf7f0
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.2
Locale: English/United Kingdom (en_GB)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post by ppd »

@bambuko I guess:

Code: Select all

cp /var/lib/snapd/desktop/applications/freecad-realthunder_freecad-realthunder.desktop ~/.local/share/applications/
Then you should be able to edit the copied desktop file (name, icon...) and your desktop environment should display it instead of the original one.
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: 2114
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

Perfect, that's what I was missing (i.e. .desktop location for snap packages)
Will play with it and come back if I have any problems.
Thank you very much indeed!!
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2114
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: Sat May 14, 2022 12:00 pm ...
That was my final solution - thank you for your help:
Screenshot from 2022-05-14 15.49.50.png
Screenshot from 2022-05-14 15.49.50.png (124.22 KiB) Viewed 2093 times
Screenshot from 2022-05-14 15.47.52.png
Screenshot from 2022-05-14 15.47.52.png (153.31 KiB) Viewed 2093 times
Screenshot from 2022-05-14 15.47.41.png
Screenshot from 2022-05-14 15.47.41.png (139.08 KiB) Viewed 2093 times
https://forum.freecadweb.org/viewtopic. ... 74#p595174
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2114
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Realthunder's Link branch Snap packages

Post by bambuko »

@ppd another question, please about integration of snap package?

When I try to open FreeCAD file using "open with" option I get the following message:
Screenshot from 2022-05-24 09.02.50.png
Screenshot from 2022-05-24 09.02.50.png (60.6 KiB) Viewed 1890 times
Screenshot from 2022-05-24 09.03.20.png
Screenshot from 2022-05-24 09.03.20.png (23.54 KiB) Viewed 1890 times
I can open the file from within FreeCAD, so it is probably an issue with my OS?
Any advice, please?
BTW it says Ubuntu Core 20, but actually it is Elementary OS
(just in case it makes difference?)

Code: Select all

OS: Ubuntu Core 20 (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 2022.520.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 2022.05.20-edge)
Hash: d47fafeec334a1069256639f391f17368276068c
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.1
OCC version: 7.6.2
Locale: English/United Kingdom (en_GB)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Realthunder's Link branch Snap packages

Post by ppd »

bambuko wrote: Tue May 24, 2022 8:12 am I can open the file from within FreeCAD, so it is probably an issue with my OS?
I only tried with the official freecad snap and standard Nautilus in Ubuntu 22.04, and my file opened just fine.
However, in my case, the FCStd file is identified as a zip file because snaps cannot register new MIME types at the moment.
bambuko wrote: Tue May 24, 2022 8:12 am BTW it says Ubuntu Core 20, but actually it is Elementary OS
The snap uses the core20 base image, which is kind of a minimal Ubuntu 20.04 running within your Elementary OS. That's why it displays as such.
Try FreeCAD from the Snap Store: Stable releases (in latest/stable) & daily builds (in latest/edge). Supports installing additional python packages via pip!
Image
Post Reply