Bug 1943469

Summary: [abrt] ulauncher: __new__(): bus.py:124:__new__:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Product: [Fedora] Fedora Reporter: Ravi Soni <my.ravisoni>
Component: ulauncherAssignee: Artem <ego.cordatus>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: ego.cordatus, troy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8c92dc7f34480f1a08cb419b9f167845b23537b2
Whiteboard: abrt_hash:76e064f2d84a5ec30795fbdcb6340d354288fcad;VARIANT_ID=workstation;
Fixed In Version: ulauncher-5.11.0-4.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-04 04:37:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Ravi Soni 2021-03-26 06:27:27 UTC
Version-Release number of selected component:
ulauncher-5.10.0-3.fc33

Additional info:
reporter:       libreport-2.14.0
cgroup:         0::/system.slice/ulauncher.service
cmdline:        /usr/bin/python3 -s /usr/bin/ulauncher --hide-window
crash_function: __new__
exception_type: dbus.exceptions.DBusException
executable:     /usr/bin/ulauncher
interpreter:    python3-3.9.2-1.fc33.x86_64
kernel:         5.10.22-200.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
bus.py:124:__new__:dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

Traceback (most recent call last):
  File "/usr/bin/ulauncher", line 28, in <module>
    main()
  File "/usr/lib/python3.9/site-packages/ulauncher/main.py", line 103, in main
    bus = dbus.SessionBus()
  File "/usr/lib64/python3.9/site-packages/dbus/_dbus.py", line 212, in __new__
    return Bus.__new__(cls, Bus.TYPE_SESSION, private=private,
  File "/usr/lib64/python3.9/site-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib64/python3.9/site-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

Local variables in innermost frame:
cls: <class 'dbus._dbus.SessionBus'>
address_or_type: 0
mainloop: None

Comment 1 Ravi Soni 2021-03-26 06:27:31 UTC
Created attachment 1766493 [details]
File: backtrace

Comment 2 Ravi Soni 2021-03-26 06:27:32 UTC
Created attachment 1766494 [details]
File: cpuinfo

Comment 3 Ravi Soni 2021-03-26 06:27:34 UTC
Created attachment 1766495 [details]
File: environ

Comment 4 Ravi Soni 2021-03-26 06:27:36 UTC
Created attachment 1766496 [details]
File: mountinfo

Comment 5 Ravi Soni 2021-03-26 06:27:37 UTC
Created attachment 1766497 [details]
File: namespaces

Comment 6 Ravi Soni 2021-03-26 06:27:39 UTC
Created attachment 1766498 [details]
File: open_fds

Comment 7 Troy Curtis 2021-07-25 13:01:11 UTC
This is due to ulauncher being unable to launch as a system service under systemd, as there is no user graphical session to attach to. This happened because the systemd unit file was incorrectly distributed in the system location instead of the user location. A PR was submitted and merged to get this in the right place: https://src.fedoraproject.org/rpms/ulauncher/pull-request/2 

The updated package ulauncher-5.11.0-4 resolves this and is available in rawhide now, and should be in the main Fedora 34 repositories shortly.

@ego.cordatus will be able to add this Fedora 33?

Comment 8 Fedora Update System 2021-07-26 19:55:22 UTC
FEDORA-2021-857fbade6e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-857fbade6e

Comment 9 Artem 2021-07-26 20:50:12 UTC
(In reply to Troy Curtis from comment #7)

Pushed update to f33. Troy, do you interesing in co-maintain Ulauncher BTW?

Comment 10 Fedora Update System 2021-07-27 01:24:29 UTC
FEDORA-2021-857fbade6e has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-857fbade6e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-857fbade6e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-08-04 04:37:14 UTC
FEDORA-2021-857fbade6e has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.