Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Trayless Support #60

Closed
tresf opened this issue Jul 13, 2015 · 5 comments
Closed

Trayless Support #60

tresf opened this issue Jul 13, 2015 · 5 comments

Comments

@tresf
Copy link
Contributor

tresf commented Jul 13, 2015

When trying to start QZ Tray on a trayless machine (such as Ubuntu running in kiosk mode)

Jul 14, 2015 9:39:09 AM qz.common.TrayManager addLogHandler
WARNING: Could not write to log file debug.  Log history be limited to the console only.
java.io.IOException: Couldn't get lock for /home/kiosk/.qz/debug%g.log
    at java.util.logging.FileHandler.openFiles(FileHandler.java:389)
    at java.util.logging.FileHandler.<init>(FileHandler.java:363)
    at qz.common.TrayManager.createLogHandler(Unknown Source)
    at qz.common.TrayManager.addLogHandler(Unknown Source)
    at qz.common.TrayManager.<init>(Unknown Source)
    at qz.ws.PrintWebSocketServer.<clinit>(Unknown Source)

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.UnsupportedOperationException
    at java.awt.TrayIcon.<init>(TrayIcon.java:144)
    at java.awt.TrayIcon.<init>(TrayIcon.java:168)
    at qz.ui.PopupTray.createTrayIcon(Unknown Source)
    at qz.ui.PopupTray.<init>(Unknown Source)
    at qz.ui.AutoHidePopupTray.<init>(Unknown Source)
    at qz.common.TrayManager.<init>(Unknown Source)
    at qz.ws.PrintWebSocketServer.<clinit>(Unknown Source)
@tresf tresf changed the title Headless Support Trayless Support Jul 14, 2015
@tresf
Copy link
Contributor Author

tresf commented Jul 15, 2015

Closed via #61

@klabarge, can you test this on your kiosk setup and post the testing results here?

https://github.com/tresf/qz-print/releases/download/v1.9.3-patch/qz-tray-1.9.3-patch.run

-Tres

@tresf tresf closed this as completed Jul 15, 2015
@klabarge
Copy link
Member

I installed the patch and confirmed that it loads properly.
kiosk3

Here is the new new log output:

java.io.IOException: Couldn't get lock for /home/kiosk/.qz/debug%g.log
    at java.util.logging.FileHandler.openFiles(FileHandler.java:389)
    at java.util.logging.FileHandler.<init>(FileHandler.java:363)
    at qz.common.TrayManager.createLogHandler(Unknown Source)
    at qz.common.TrayManager.addLogHandler(Unknown Source)
    at qz.common.TrayManager.<init>(Unknown Source)
    at qz.ws.PrintWebSocketServer.<clinit>(Unknown Source)

Jul 15, 2015 11:21:03 AM qz.ui.PopupTray getSystemTray
SEVERE: System tray is not supported on this platform
Jul 15, 2015 11:21:03 AM qz.ui.PopupTray getSystemTray
SEVERE: System tray is not supported on this platform
Jul 15, 2015 11:21:04 AM qz.utils.ShellUtilities execute
INFO: Executing: [uname, -a]
Jul 15, 2015 11:21:04 AM qz.utils.ShellUtilities execute
INFO: Executing: [gconftool-2, --get, /desktop/gnome/shell/windows/theme]
Jul 15, 2015 11:21:04 AM qz.utils.ShellUtilities execute
INFO: Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk.css]
Jul 15, 2015 11:21:04 AM qz.utils.ShellUtilities execute
INFO: Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css]
Jul 15, 2015 11:21:04 AM qz.deploy.DeployUtilities loadSSLProperties
INFO: SSL properties file from /opt/qz-tray/qz-tray.properties
Jul 15, 2015 11:21:04 AM qz.utils.ShellUtilities execute
INFO: Executing: [certutil, -d, sql:/home/kiosk/.pki/nssdb, -A, -t, TC, -n, QZ Industries, LLC, -i, /opt/qz-tray/auth/qz-tray.crt]
Jul 15, 2015 11:21:04 AM qz.deploy.LinuxCertificate installCertificate
WARNING: Error executing certutil.  Ensure it is installed properly with write access to sql:/home/kiosk/.pki/nssdb. Secure websockets will not function on certain browsers.
Jul 15, 2015 11:21:05 AM qz.auth.CRL$1 run
INFO: Loading CRL https://crl.qz.io...
Jul 15, 2015 11:21:05 AM qz.deploy.DeployUtilities loadSSLProperties
INFO: SSL properties file from /opt/qz-tray/qz-tray.properties
2015-07-15 11:21:05.933:INFO::main: Logging initialized @3964ms
2015-07-15 11:21:06.205:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
2015-07-15 11:21:06.304:INFO:oejs.ServerConnector:main: Started ServerConnector@1fd42e7e{HTTP/1.1}{0.0.0.0:8182}
2015-07-15 11:21:06.599:INFO:oejs.ServerConnector:main: Started ServerConnector@459e1c7d{SSL-HTTP/1.1}{localhost:8181}

@tresf
Copy link
Contributor Author

tresf commented Jul 15, 2015

it loads properly.

👍

@pupitetris
Copy link

Hi. Can we have this for qz-tray 2 as well? Thank-you, qz-tray team!

@tresf
Copy link
Contributor Author

tresf commented Nov 21, 2017

Hi. Can we have this for qz-tray 2 as well? Thank-you, qz-tray team!

The beta of 2.1 has headless support. The project is located here: https://github.com/qzind/tray.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants