Discussion: State of the snap (Snap Packaging)

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: Discussion: State of the snap (Snap Packaging)

Post by ppd »

Edge is built from this recipe: https://github.com/ppd/freecad-ppd/blob ... craft.yaml
by this workflow: https://github.com/ppd/freecad-ppd/blob ... -daily.yml

So edge is built on a daily basis at midnight and pulls the then current HEAD from FreeCAD master. I hope that clears things up.
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

Thx!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
HenriqueReis
Posts: 34
Joined: Tue Mar 23, 2021 4:57 pm
Location: São Paulo - SP
Contact:

Re: Saving aborted

Post by HenriqueReis »

----------------------
OS: Ubuntu Core 20 (Budgie:GNOME/budgie-desktop)
Word size of FreeCAD: 64-bit
Version: 0.20.26658 (Git)
Build type: Release
Branch: master
Hash: 86ee738dff708f8cb54ac1a4ea39092092350ddf
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Portuguese/Brazil (pt_BR)
----------------------

Guys ... I have a problem with my FreeCAD ... it is not allowing me to save my files or open files ... like when I save the message "Save aborted" appears.

I emphasize that I do not display the folder window to open or to save the file.

My version 0.20 installation process was running the command: sudo snap install --edge freecad-ppd

Indicated by this link: https://wiki.freecadweb.org/Ubuntu_Snap
Last edited by Kunda1 on Fri Dec 17, 2021 8:28 pm, edited 1 time in total.
Reason: Moved post to the official Snap thread
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

@HenriqueReis I can't recreate the problem on the same version of snap edge

OS: Ubuntu Core 20 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.26658 (Git)
Build type: Release
Branch: master
Hash: 86ee738dff708f8cb54ac1a4ea39092092350ddf
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Discussion: State of the snap (Snap Packaging)

Post by ppd »

An educated guess: For some reason, no desktop portal could be running in your session. The Qt platform plugin inside the snap will call the xdg desktop portal implementation outside of the snap via dbus to open a file dialog. KDE and Gnome sessions usually have this set up.

So there are most likely two options: install a desktop portal or set an environment variable so that Qt does not use the desktop portal.
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

@ppd can you check out this issue: https://forum.freecadweb.org/viewtopic. ... 57#p554457 It may not be snap related (although I can recreate it on it) but perhaps you can troubleshoot it nonetheless?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Discussion: State of the snap (Snap Packaging)

Post by ppd »

That's due to the files getting installed to another directory:

Code: Select all

src/Mod/Mesh/CMakeLists.txt: Line 48
INSTALL(FILES ${MeshTestDataFiles} DESTINATION Mod/Mesh/Data)
So that probably needs to be changed to

Code: Select all

INSTALL(FILES ${MeshTestDataFiles} DESTINATION Mod/Mesh/App/TestData)
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

Excellent, @chennes merged the fix in git commit fc642482d

@ppd can you update snap edge so I can test?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppd
Posts: 108
Joined: Tue Feb 26, 2019 12:01 pm
Location: Munich, Germany

Re: Discussion: State of the snap (Snap Packaging)

Post by ppd »

Kunda1 wrote: Sun Dec 19, 2021 12:33 pm @ppd can you update snap edge so I can test?
https://github.com/ppd/freecad-ppd/acti ... 1598562527
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Discussion: State of the snap (Snap Packaging)

Post by Kunda1 »

+1

BTW, can you make a badge for the snap edge that specifies the current revision number ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply