Ubuntu snap: A quick try
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Ubuntu snap: A quick try
Will test both tomorrow.
- vejmarie
- Posts: 713
- Joined: Mon Jan 04, 2016 4:52 pm
- Location: Somewhere between France, USA and Taiwan
- Contact:
Re: Ubuntu snap: A quick try
Some stats regarding the snap.
Re: Ubuntu snap: A quick try
OK i tested on Disco Dingo and can confirm opening Ubuntu Software now offers FreeCAD 0.17 from stable and FreeCAD 0.18 from beta channel. I first installed FreeCAD 0.17 and i could launch it after directly from Ubuntu Software. In general it works. I tested Addon manager and installed one of the modules. Installation worked and after FreeCAD restart the module worked as expected. I uninstalled FreeCAD 0.17, enabled the beta channel and installed FreeCAD 0.18. All from Ubuntu Software. Launching FreeCAD 0.18 was successful and quick testing didn't indicate any issues.
In home folder there is a snap folder. Config files and modules are added there. I left the permission to access home folder enabled. Launcher is currently missing, and system default theme isn't being used. Quick search indicated that they didn't yet solve the issue of supporting desktop themes in the first place. Therefore not much we can do to resolve this for now.
Anyway, all in all nice improvements and thanks @vejmarie for investing the effort and updating the snap packages.
In home folder there is a snap folder. Config files and modules are added there. I left the permission to access home folder enabled. Launcher is currently missing, and system default theme isn't being used. Quick search indicated that they didn't yet solve the issue of supporting desktop themes in the first place. Therefore not much we can do to resolve this for now.
Anyway, all in all nice improvements and thanks @vejmarie for investing the effort and updating the snap packages.
- vejmarie
- Posts: 713
- Joined: Mon Jan 04, 2016 4:52 pm
- Location: Somewhere between France, USA and Taiwan
- Contact:
Re: Ubuntu snap: A quick try
thanks for the deep feedbacks, and another time sorry for such long delays. My past year has just been a mess. I am automatizing the 0.18 build and the beta channel shall be updated probably one time a week of everybody is ok ? Doing it at each PR seems to me perhaps too much, I was expecting to launch a cron or something like that.
Regarding the theming I am discussing with the snap people to see what could be done.
By the way this is just great to see that stuff working . I can "check" that on my list and go to my next freecad task next week .
I will push for a PR to update the build, like that everybody can have a look to it. For your ref I add Kurt as a snap maintainer, if you want to be part of it let me know, and just send me an email address to add you to the list through a PM.
vejmarie
ps: looks like the 10k weekly user will be able to enjoy the update
Regarding the theming I am discussing with the snap people to see what could be done.
By the way this is just great to see that stuff working . I can "check" that on my list and go to my next freecad task next week .
I will push for a PR to update the build, like that everybody can have a look to it. For your ref I add Kurt as a snap maintainer, if you want to be part of it let me know, and just send me an email address to add you to the list through a PM.
vejmarie
ps: looks like the 10k weekly user will be able to enjoy the update
Re: Ubuntu snap: A quick try
I can maybe be a second backup. What does it require?, Can we do it from the PPA? I'm all for the most distribution channels for FreeCAD, but we must be able to "turn it off" if we don't have the resources to maintain it. The internet lives forever, and "dead" packages must be avoided.
This always makes it seem worth it
"fight the good fight"
- kkremitzki
- Veteran
- Posts: 2511
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: Ubuntu snap: A quick try
Snaps will be required to continue supporting Ubuntu 16.04 until its 2021 end of life so it's good this situation is improving.
Re: Ubuntu snap: A quick try
You're welcome. The truth is just about anybody can create a FreeCAD snap package on Snapcraft. If snaps really take off, likely we will be seeing more of FreeCAD related ones in the future. And likely we won't have all that much say about the state they are in. Your effort i guess is considered official one and:
This numbers will likely only grow. Therefore it's nice to see the package is in good condition.ps: looks like the 10k weekly user will be able to enjoy the update
Sounds good.My past year has just been a mess. I am automatizing the 0.18 build and the beta channel shall be updated probably one time a week of everybody is ok ?
The main problem i guess was nobody else had maintainership powers. ATM likely you know best on how to make it all work and @kkremitzki and @sgrogan i guess should now gain more administrative privileges. That i guess should suffice for now.For your ref I add Kurt as a snap maintainer, if you want to be part of it let me know, and just send me an email address to add you to the list through a PM.
Re: Ubuntu snap: A quick try
vejmarie's reply was posted in the Release 0.18 topic but I thought what I wanted to ask would be best put here.
I just installed the snap package from the Ubuntu store, it is great that it is available. I noticed some issues, the first ones being about the dependencies :
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Unknown
Branch: master
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/UnitedStates (en_US)
The OCC version it's built with is nearly 3-year old, on the PPA we've been using 7.3.0 for quite a while thanks to Kurt's work. Python 2 and Qt4 are another matter, if the snap has to be compatible with older Ubuntu versions I suppose?
There does not seem to be a desktop launcher. I can't find it from the GNOME Applications menu, I have to launch it from the Ubuntu store.
When I open the snap, it does not comply with the desktop theme, which from my quick search remains an issue with snaps made by the community (I wonder why Canonical's snaps comply with the desktop theme without issue though). But the real deal breaker is that even my mouse pointer is different, when in FreeCAD's snap it's black instead of white.
The general feel is that when I'm using the FreeCAD snap, I'm brought back 15 years into the past when desktop themes on Linux were much less refined... To be blunt, damn it's ugly! I know we can use FreeCAD's packaged stylesheets, but new users are not aware of that, also the stylesheets do not style the ugly mouse icons.
Just tried stylesheets, toolbar handles are not themed...
I also noticed an issue with the Navigation Indicator tooltip not showing icons:
Installing addons from the Addon Manager seems to work, to anyone interested, the hidden .FreeCAD folder where macros and modules are installed is in $HOME/snap/freecad/current/ which also contains a .config folder that holds system.cfg, user.cfg and FreeCAD/freecad.conf.
- vejmarie
- Posts: 713
- Joined: Mon Jan 04, 2016 4:52 pm
- Location: Somewhere between France, USA and Taiwan
- Contact:
Re: Ubuntu snap: A quick try
Hello,
I am working on upgrading OCCT and Python as well as Qt, but snap build is a "tricky/unfunny" build thing (and it takes time). Regarding the look and feel there is unfortunatly not that much I can do as long as Canonical doesn't fix that.
Roughly the current build is a port of 0.17 to 0.18. Regarding the UI, that is the same issues than before. I kept python and so on as I built it on top of Xenial (I now there are newer version of the lib on Xenial), and initially I wanted to build on top of Bionic but snap core doesn't load automatically when you are stick with Bionic 18 which provides a core18 but doesn't support Desktop interfaces.
Let me dig a little bit more futher, to enhance all of that. I made that build because I received request from end users to get it initially done.
vejmarie
I am working on upgrading OCCT and Python as well as Qt, but snap build is a "tricky/unfunny" build thing (and it takes time). Regarding the look and feel there is unfortunatly not that much I can do as long as Canonical doesn't fix that.
Roughly the current build is a port of 0.17 to 0.18. Regarding the UI, that is the same issues than before. I kept python and so on as I built it on top of Xenial (I now there are newer version of the lib on Xenial), and initially I wanted to build on top of Bionic but snap core doesn't load automatically when you are stick with Bionic 18 which provides a core18 but doesn't support Desktop interfaces.
Let me dig a little bit more futher, to enhance all of that. I made that build because I received request from end users to get it initially done.
vejmarie
Re: Ubuntu snap: A quick try
I do understand that you have no control over the theming issue, it is maddening all the same, and personally it puts me off snaps completely.
On the other hand, addressing the Nav Indicator missing icons should be possible.
On the other hand, addressing the Nav Indicator missing icons should be possible.