Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running without $DISPLAY shows error from notification code #1186

Closed
Jakuje opened this issue Nov 7, 2017 · 0 comments · Fixed by #1187
Closed

Running without $DISPLAY shows error from notification code #1186

Jakuje opened this issue Nov 7, 2017 · 0 comments · Fixed by #1187

Comments

@Jakuje
Copy link
Member

Jakuje commented Nov 7, 2017

Problem Description

Running pkcs11-tool on machine without $DISPLAY/without X11 server running throws the following bogus errors, while attempting to show the smartcard notifications:

Error connecting: Cannot autolaunch D-Bus without X11 $DISPLAY

Proposed Resolution

On Linux, the notification code should not attempt to show notification if there is no $DISLPAY environment variable set.

Steps to reproduce

Connect remotely to machine with smart card and without display and list the PKCS#11 objects (without PCSC access control):

./pkcs11-tool -O

Unfortunately it is not possible to reproduce the issue by unsetting $DISPLAY.

frankmorgner added a commit to frankmorgner/OpenSC that referenced this issue Nov 7, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
frankmorgner added a commit to frankmorgner/OpenSC that referenced this issue Nov 7, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
frankmorgner added a commit to frankmorgner/OpenSC that referenced this issue Nov 14, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
- prevents uninitialized use of gio2 notification
frankmorgner added a commit to frankmorgner/OpenSC that referenced this issue Nov 14, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
- prevents uninitialized use of gio2 notification
frankmorgner added a commit to frankmorgner/OpenSC that referenced this issue Nov 21, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
frankmorgner added a commit that referenced this issue Nov 21, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes #1186
metsma pushed a commit to metsma/OpenSC that referenced this issue Dec 6, 2017
- fixes showing notifications in gnome-shell via gio2
- removes gdbus interface for notifications
- fixes OpenSC#1186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant