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: setroubleshootAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: 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:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Joseph D. Wagner 2018-02-05 17:40:54 UTC
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)>

Comment 1 Joseph D. Wagner 2018-02-05 17:40:59 UTC
Created attachment 1391646 [details]
File: backtrace

Comment 2 Joseph D. Wagner 2018-02-05 17:41:00 UTC
Created attachment 1391647 [details]
File: cgroup

Comment 3 Joseph D. Wagner 2018-02-05 17:41:01 UTC
Created attachment 1391648 [details]
File: cpuinfo

Comment 4 Joseph D. Wagner 2018-02-05 17:41:02 UTC
Created attachment 1391649 [details]
File: environ

Comment 5 Joseph D. Wagner 2018-02-05 17:41:03 UTC
Created attachment 1391650 [details]
File: mountinfo

Comment 6 Joseph D. Wagner 2018-02-05 17:41:04 UTC
Created attachment 1391651 [details]
File: namespaces

Comment 7 Joseph D. Wagner 2018-02-05 17:41:05 UTC
Created attachment 1391652 [details]
File: open_fds

Comment 8 Gene Snider 2018-02-08 20:11:49 UTC
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

Comment 9 Petr Lautrbach 2018-02-10 23:40:07 UTC
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.

Comment 10 Avery Freeman 2018-02-15 16:57:31 UTC
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

Comment 11 Fedora Update System 2018-02-20 09:49:49 UTC
setroubleshoot-3.3.16-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a6b5018b6b

Comment 12 Fedora End Of Life 2018-02-20 15:35:05 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 13 Fedora Update System 2018-02-20 18:18:56 UTC
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

Comment 14 Fedora Update System 2018-02-27 17:21:29 UTC
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.