User application Snap plugging "cups" does not set CUPS_SERVER
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Invalid
|
Undecided
|
Unassigned |
Bug Description
See also
https:/
for some background information.
I am on Jammy, amd64.
For the development of the new "cups" interface of snapd I did the following test:
1. Install snapd Snap from edge, gave me version 2.54.4+
2. Get CUPS Snap from GIT repo: https:/
----------
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -59,6 +59,7 @@ slots:
interface: cups-control
cups:
interface: cups
+ cups-socket-
apps:
----------
Build the Snap with "snapcraft snap" and install it with "sudo snap install --dangerous SNAPFILE"
3. Get test-snapd-
Build and install this Snap, as you did with the CUPS Snap, no patches needed here.
4. Connect the "cups" interface:
sudo snap connect test-snapd-
Now you should have all set up. So run the application of the test Snap:
test-snapd-
It starts a shell inside the Snap harness so that you can do tests there. CUPS command line tools are installed there.
In the shell run:
$ echo $CUPS_SERVER
$ lpstat -H
$ lpstat -v
$ exit
You see that the CUPS_SERVER environment variable is no set and the lpstat commands refer themselves to the system's CUPS (/run/cups/
$ snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical✓ base
chromium 99.0.4844.51 1926 latest/stable canonical✓ -
core 16-2.54.3 12725 latest/stable canonical✓ core
core18 20211215 2284 latest/stable canonical✓ base
core20 20220304 1376 latest/edge canonical✓ base
cups 2.4.1-3 x22 - - -
cups-admin-test 0.1.0 x5 - - -
cups-admin-
ghostscript-
gimp 2.10.28 383 latest/stable snapcrafters -
gnome-3-28-1804 3.28.0-
gnome-3-34-1804 0+git.3556cb3 77 latest/stable/… canonical✓ -
gnome-3-38-2004 0+git.1f9014a 99 latest/stable canonical✓ -
gtk-common-themes 0.1-59-g7bca6ae 1519 latest/stable/… canonical✓ -
gutenprint-
hplip-printer-app 1.0 x3 latest/edge - -
ipp-usb 0.9.19+git7.72a1620 x3 - - -
kde-frameworks-
kde-frameworks-
multipass 1.8.0 6130 latest/stable canonical✓ -
ps-printer-app 1.0 x76 latest/edge - -
rasterview 1.8 222 latest/stable michaelrsweet -
snap-store 3.38.0-66-gbd5b8f7 558 latest/stable/… canonical✓ -
snapcraft 6.0.2 7010 latest/stable canonical✓ classic
snapd 2.54.4+
telegram-desktop 3.4.3 3544 latest/stable telegram.desktop -
test-snapd-
zoom-client 5.9.6.2225 170 latest/stable ogra -
$ snap connections | grep cups
avahi-control cups:avahi-control :avahi-control manual
avahi-observe cups-admin-
avahi-observe cups-admin-
cups cups-admin-
cups test-snapd-
cups-control chromium:
cups-control cups-admin-
cups-control cups:cups-internal cups:cups-control manual
home cups-admin-
home cups-admin-
home cups:home :home -
network cups-admin-
network cups-admin-
network cups:network :network -
network test-snapd-
network-bind cups:network-bind :network-bind -
network-
raw-usb cups:raw-usb :raw-usb manual
system-files cups:etc-cups :system-files manual
$
summary: |
- User application Snap pluggin "cups" does not set CUPS_SERVER + User application Snap plugging "cups" does not set CUPS_SERVER |
$ snap version git1072. g87e5a7c git1072. g87e5a7c
snap 2.54.4+
snapd 2.54.4+
series 16
ubuntu 22.04
kernel 5.15.0-18-generic