Discussion: State of the snap (Snap Packaging)
Re: Discussion: State of the snap (Snap Packaging)
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: tag: 0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United Kingdom (en_GB)
Just installed the freecad snap replacing freecad-ppd and no printers are recognised, only print to file is available in the dialogue.
Actions showing bug:
sudo snap install freecad
start Freecad in Part Design sketch rectangle and pad. Switch to techdraw and create 2D drawing of the object. Type ctrl-p. No physical printers appear.
snap connections freecad says:
Interface Plug Slot Notes
browser-support freecad:browser-support :browser-support -
content[icon-themes] freecad:icon-themes gtk-common-themes:icon-themes -
content[kde-frameworks-5-91-qt-5-15-3-core20-all] freecad:kde-frameworks-5-91-qt-5-15-3-core20 kde-frameworks-5-91-qt-5-15-3-core20:kde-frameworks-5-91-qt-5-15-3-core20-slot -
content[sound-themes] freecad:sound-themes gtk-common-themes:sound-themes -
desktop freecad:desktop :desktop -
desktop-legacy freecad:desktop-legacy :desktop-legacy -
gsettings freecad:gsettings :gsettings -
home freecad:home :home -
network freecad:network :network -
opengl freecad:opengl :opengl -
removable-media freecad:removable-media :removable-media manual
unity7 freecad:unity7 :unity7 -
wayland freecad:wayland :wayland -
x11 freecad:x11 :x11 -
Suggest the snap package is missing cups-control
Any suggestions gratefully received!
Dave
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: tag: 0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United Kingdom (en_GB)
Just installed the freecad snap replacing freecad-ppd and no printers are recognised, only print to file is available in the dialogue.
Actions showing bug:
sudo snap install freecad
start Freecad in Part Design sketch rectangle and pad. Switch to techdraw and create 2D drawing of the object. Type ctrl-p. No physical printers appear.
snap connections freecad says:
Interface Plug Slot Notes
browser-support freecad:browser-support :browser-support -
content[icon-themes] freecad:icon-themes gtk-common-themes:icon-themes -
content[kde-frameworks-5-91-qt-5-15-3-core20-all] freecad:kde-frameworks-5-91-qt-5-15-3-core20 kde-frameworks-5-91-qt-5-15-3-core20:kde-frameworks-5-91-qt-5-15-3-core20-slot -
content[sound-themes] freecad:sound-themes gtk-common-themes:sound-themes -
desktop freecad:desktop :desktop -
desktop-legacy freecad:desktop-legacy :desktop-legacy -
gsettings freecad:gsettings :gsettings -
home freecad:home :home -
network freecad:network :network -
opengl freecad:opengl :opengl -
removable-media freecad:removable-media :removable-media manual
unity7 freecad:unity7 :unity7 -
wayland freecad:wayland :wayland -
x11 freecad:x11 :x11 -
Suggest the snap package is missing cups-control
Any suggestions gratefully received!
Dave
Re: Discussion: State of the snap (Snap Packaging)
freecad-ppd is deprecated in favor of the official freecad snap.
See:
snap info freecad
Recommend you either install the beta, candidate, or edge channels
More info on the Snap wiki page
Edit: what gives you the impression that 'cups-control' package is necessary?
See:
snap info freecad
Recommend you either install the beta, candidate, or edge channels
More info on the Snap wiki page
Edit: what gives you the impression that 'cups-control' package is necessary?
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
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
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Discussion: State of the snap (Snap Packaging)
Cups is the printer interface I think, my interpretation is that sombrero already installed the official version but I agree testing on the edge channel again would be better.
Re: Discussion: State of the snap (Snap Packaging)
Hi Kunda1, thanks for the quick reply,
Same problem with edge
Not an expert but if I understand snap correctly, it has a permissions system involving plugs and slots that the packager activates.
I believe a snap needs the Plug 'cups-control' activated before it can print via cups.
For example, 'snap gimp connections' includes:
Interface Plug Slot
cups-control gimp:cups-control -
I believe means gimp won't print unless I add cups-control to the empty Slot provided by the packager. This is easily done from the software store where opening the gimp entry shows it's installed and there's a permissions dialogue. One of the permission options is 'Print Documents' and activating it changes the output of snap connections gimp to:
cups-control gimp:cups-control :cups-control manual
And now gimp can see my printers.
I imagine freecad should be similar. I guess the packager hasn't provided a slot for cups-control, so the user can't actiivate the print interface with a snap command or from the Software Store. A slot has been provided allowing removeable media, by default OFF, but I can turn it on.
I'll give candidate and beta a go,
Thanks again
Dave
Same problem with edge
Code: Select all
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28939 (Git)
Build type: Release
Branch: master
Hash: 4c2972cb2391ecad30f1015be8b67cae8a03b803
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
I believe a snap needs the Plug 'cups-control' activated before it can print via cups.
For example, 'snap gimp connections' includes:
Interface Plug Slot
cups-control gimp:cups-control -
I believe means gimp won't print unless I add cups-control to the empty Slot provided by the packager. This is easily done from the software store where opening the gimp entry shows it's installed and there's a permissions dialogue. One of the permission options is 'Print Documents' and activating it changes the output of snap connections gimp to:
cups-control gimp:cups-control :cups-control manual
And now gimp can see my printers.
I imagine freecad should be similar. I guess the packager hasn't provided a slot for cups-control, so the user can't actiivate the print interface with a snap command or from the Software Store. A slot has been provided allowing removeable media, by default OFF, but I can turn it on.
I'll give candidate and beta a go,
Thanks again
Dave
Re: Discussion: State of the snap (Snap Packaging)
Confirmed official, edge, candidate and beta freecad snaps tested at 18:30GMT 28 May 2022 cannot see printers on my system - they all default to 'Print File'
The snap Interfaces declared are:
Interface
browser-support
content[icon-themes]
content[kde-frameworks-5-91-qt-5-15-3-core20-all]
content[sound-themes]
desktop
desktop-legacy
gsettings
home
network
opengl
removable-media
unity7
wayland
x11
In comparison the interfaces declared for the gimp snap are:
Interface
browser-support
content[gnome-3-28-1804]
content[gtk-3-themes]
content[icon-themes]
content[sound-themes]
cups-control
dbus
desktop
desktop-legacy
gsettings
home
network
opengl
removable-media
unity7
wayland
x11
Dave
The snap Interfaces declared are:
Interface
browser-support
content[icon-themes]
content[kde-frameworks-5-91-qt-5-15-3-core20-all]
content[sound-themes]
desktop
desktop-legacy
gsettings
home
network
opengl
removable-media
unity7
wayland
x11
In comparison the interfaces declared for the gimp snap are:
Interface
browser-support
content[gnome-3-28-1804]
content[gtk-3-themes]
content[icon-themes]
content[sound-themes]
cups-control
dbus
desktop
desktop-legacy
gsettings
home
network
opengl
removable-media
unity7
wayland
x11
Dave
Re: Discussion: State of the snap (Snap Packaging)
Thanks. I've opened a ticket: https://github.com/FreeCAD/FreeCAD-snap/issues/11
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
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
Re: Discussion: State of the snap (Snap Packaging)
ppd added cups interface. Should be available for next edge later today
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
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
Re: Discussion: State of the snap (Snap Packaging)
@sombrero please test new Snap 'edge'. Also you may want to let the gimp folk know that cups interface package is better than cups control. And that they perhaps consider swapping them.
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
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
Re: Discussion: State of the snap (Snap Packaging)
Confirmed printers are now visible in the snap version and they work!
Didn't have to do anything, I left an earlier snap loaded and the new version installed automatically. The print option now appears in the Permissions section of 'Ubuntu Software' and is on by default, so nothing to do.
Test done with:
Sorry about delay getting back to this, I've been busy!
Many thanks, great work!
Regards,
Dave
Didn't have to do anything, I left an earlier snap loaded and the new version installed automatically. The print option now appears in the Permissions section of 'Ubuntu Software' and is on by default, so nothing to do.
Test done with:
Code: Select all
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28936 (Git)
Build type: Release
Branch: tag: 0.20beta1
Hash: b02705d79f2e1adc7773f0c845e0acc5ae8fde4b
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Sorry about delay getting back to this, I've been busy!
Many thanks, great work!
Regards,
Dave
Re: Discussion: State of the snap (Snap Packaging)
FreeCAD Snap stable has been updated to v0.20 (https://github.com/FreeCAD/FreeCAD-snap ... cb8938c7ea). This means anyone with an installed 'FreeCAD stable' snap channel will automatically be upgraded to v0.20 release from 0.19.x
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
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