Bug 1542156
| Summary: | [abrt] setroubleshoot: launch_desktop(): seapplet:83:launch_desktop:TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given) | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joseph D. Wagner <joe> | ||||||||||||||||
| Component: | setroubleshoot | Assignee: | Petr Lautrbach <plautrba> | ||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||
| Version: | 28 | CC: | averyfreeman, dwalsh, genes1122, jsmith.fedora, mgrepl, plautrba, pmoore, pradhanphy, rosset.filipe, vmojzis | ||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/e12662dda483407b12c357076ac1f37dba9b1014 | ||||||||||||||||||
| Whiteboard: | abrt_hash:46020a824f2ae2eec775772c609bc56cfc5d5819; | ||||||||||||||||||
| Fixed In Version: | setroubleshoot-3.3.16-1.fc27 | Doc Type: | If docs needed, set a value | ||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||
| Last Closed: | 2018-02-27 17:21:29 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: |
|
||||||||||||||||||
Created attachment 1391646 [details]
File: backtrace
Created attachment 1391647 [details]
File: cgroup
Created attachment 1391648 [details]
File: cpuinfo
Created attachment 1391649 [details]
File: environ
Created attachment 1391650 [details]
File: mountinfo
Created attachment 1391651 [details]
File: namespaces
Created attachment 1391652 [details]
File: open_fds
Similar problem has been detected: I clicked on the icon in the system tray to observe an AVC message. reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /usr/bin/seapplet crash_function: launch_desktop exception_type: TypeError executable: /usr/bin/seapplet kernel: 4.15.0-1.fc28.x86_64 package: setroubleshoot-3.3.15-2.fc28 reason: seapplet:83:launch_desktop:TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given) runlevel: N 5 type: Python3 uid: 1000 Something has changed in Gio.AppInfo.launch in GLib from python3-gobject-base-3.27.1-1.fc28.x86_64
The following patch fixes it for me:
diff --git a/framework/src/seapplet b/framework/src/seapplet
index 1340ee6..c44eb4e 100644
--- a/framework/src/seapplet
+++ b/framework/src/seapplet
@@ -113,7 +113,8 @@ class SEApplet(GObject.Object):
def launch_desktop(self):
launcher = Gio.DesktopAppInfo.new("setroubleshoot.desktop")
- launcher.launch()
+ context = Gio.AppLaunchContext()
+ launcher.launch(None, context)
self.status_icon.set_visible(False)
def send_notification(self, sender, dobject, iface, signal, params):
You can try this https://copr.fedorainfracloud.org/coprs/build/713424/ build from plautrba/setroubleshoot COPR repo to test it.
Similar problem has been detected: Event occurred during login on fresh installation of Rawhide reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /usr/bin/seapplet crash_function: launch_desktop exception_type: TypeError executable: /usr/bin/seapplet kernel: 4.15.0-1.fc28.x86_64 package: setroubleshoot-3.3.15-2.fc28 reason: seapplet:83:launch_desktop:TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given) runlevel: N 5 type: Python3 uid: 1000 setroubleshoot-3.3.16-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a6b5018b6b This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. setroubleshoot-3.3.16-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a6b5018b6b setroubleshoot-3.3.16-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |
Version-Release number of selected component: setroubleshoot-3.3.15-2.fc28 Additional info: reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /usr/bin/seapplet crash_function: launch_desktop exception_type: TypeError executable: /usr/bin/seapplet kernel: 4.15.0-1.fc28.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: seapplet:83:launch_desktop:TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given) Traceback (most recent call last): File "/usr/bin/seapplet", line 73, in status_show self.launch_desktop() File "/usr/bin/seapplet", line 83, in launch_desktop launcher.launch() TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given) Local variables in innermost frame: launcher: <Gio.DesktopAppInfo object at 0x7fde8c3515a0 (GDesktopAppInfo at 0x55c5bfdc0d20)> self: <__main__.SEApplet object at 0x7fde8c391ee8 (__main__+SEApplet at 0x55c5bfdbf020)>