snaps

I installed snapd and it seems to be mostly working, except I can only launch a snap app if I run

xhost +

first. Anyone know if there’s a way around this? Running KDE desktop. Thanks.

What is output of “echo $XAUTHORITY” in your KDE session (in terminal)?

It’s the path to ~/.Xauthority. I tried deleting it, but I have the same problem when it gets recreated. Attempting to launch an app from the command line (without xhost +) yields:

No protocol specified 
Unable to init server: Could not connect: Connection refused

Launching an app from the command line with xhost + shows the following errors:

03:14:20:0921 Gs  /etc/PackageKit/Vendor.conf file not found                                                                                                                                                                                            
03:14:21:0044 Gs  Only 0 apps for recent list, hiding                                                                                                                                                                                                   
03:14:21:0411 Gs  hiding category audio-video featured applications: found only 0 to show, need at least 9                                                                                                                                              
03:14:21:0411 Gs  hiding category productivity featured applications: found only 0 to show, need at least 9                                                                                                                                             
03:14:21:0714 Gs  FIXME: Unknown progress handling is not yet implemented for GsProgressButton                                                                                                                                                          
03:14:21:0714 Gs  FIXME: Unknown progress handling is not yet implemented for GsProgressButton                                                                                                                                                          
03:14:21:0714 Gs  FIXME: Unknown progress handling is not yet implemented for GsProgressButton                                                                                                                                                          
03:14:21:0714 Gs  FIXME: Unknown progress handling is not yet implemented for GsProgressButton                                                                                                                                                          
03:14:21:0714 Gs  failed to create an app for */*/*/*/system/*                                                                                                                                                                                          
03:14:21:0723 Gs  failed to create an app for */*/*/*/system/*                                                                                                                                                                                          
03:14:21:0723 Gs  failed to get system app                                                                                                                                                                                                              
03:14:22:0395 Gs  automatically prevented from changing kind on system/snap/*/desktop-application/io.snapcraft.snapd-PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4/latest/stable from desktop-application to unknown!                                                
03:14:22:0698 Gs  automatically prevented from changing kind on system/snap/*/runtime/io.snapcraft.bare-EISPgh06mRh1vordZY9OZ34QHdd7OrdR/latest/stable from runtime to unknown!                                                                         
03:14:23:0006 Gs  automatically prevented from changing kind on system/snap/*/runtime/io.snapcraft.core18-CSO04Jhav2yK0uz97cr0ipQRyqg0qQL6/latest/stable from runtime to unknown!                                                                       
03:14:23:0320 Gs  automatically prevented from changing kind on system/snap/*/runtime/io.snapcraft.core20-DLqre5XGLbDqg9jPtiAhRRjDuPVa5X1q/latest/stable from runtime to unknown!  

The Vendor.conf file does exist, not sure why the app thinks otherwise.

I think I got this resolved. The hostname was not set on my system somehow. It showed in the terminal window but /etc/hostname was blank. Updated that, and now the snap apps work correctly.