Bug 1542156 - [abrt] setroubleshoot: launch_desktop(): seapplet:83:launch_desktop:TypeError: Gio.AppInfo.launch() takes exactly 3 arguments (1 given)
Summary: [abrt] setroubleshoot: launch_desktop(): seapplet:83:launch_desktop:TypeError...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:46020a824f2ae2eec775772c609...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-05 17:40 UTC by Joseph D. Wagner
Modified: 2018-02-27 17:21 UTC (History)
10 users (show)

Fixed In Version: setroubleshoot-3.3.16-1.fc27
Clone Of:
Environment:
Last Closed: 2018-02-27 17:21:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (572 bytes, text/plain)
2018-02-05 17:40 UTC, Joseph D. Wagner
no flags Details
File: cgroup (289 bytes, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details
File: cpuinfo (1.03 KB, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details
File: environ (1.34 KB, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details
File: mountinfo (3.15 KB, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details
File: namespaces (129 bytes, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details
File: open_fds (1.60 KB, text/plain)
2018-02-05 17:41 UTC, Joseph D. Wagner
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.