Bug 100791 - gst-install-plugins-helper: Does not wait for user
Summary: gst-install-plugins-helper: Does not wait for user
Status: RESOLVED MOVED
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 23:32 UTC by Christian Stadelmann
Modified: 2018-09-07 10:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
A python test case showing the issue (467 bytes, text/x-python)
2017-04-25 23:32 UTC, Christian Stadelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stadelmann 2017-04-25 23:32:13 UTC
Created attachment 131027 [details]
A python test case showing the issue

Steps to reproduce:
1. run gst-install-plugins-helper ¹
2. wait for it to return

Alternative steps to reproduce:
1. run the attached python script
2. wait for it to finish

What happens:
gst-install-plugins-helper returns immediately.

What should happen:
According to the documentation², the gst_install_plugins_sync function should not return before the plugin was either installed or the installation was aborted or failed. The gst_install_plugins_async function callback should act the same. The only way this can work is if gst-install-plugins-helper waits until the frontend (in my case gnome-software) does its job and then reports the  correct return value³.

I am running these software versions on Fedora 25:
gstreamer1-plugins-base-1.10.4-1.fc25.x86_64
PackageKit-1.1.5-1.fc25.x86_64
gnome-software-3.22.7-1.fc25.x86_64

Additional info:
Relevant GStreamer code: https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst-libs/gst/pbutils/install-plugins.c
Some relevant PackageKit code: https://cgit.freedesktop.org/packagekit/tree/contrib/gstreamer-plugin/pk-gstreamer-install.c

¹ for example with these arguments:
`--interaction=show-confirm-search --desktop-id=exaile.desktop "gstreamer|1.0|exaile.py|MPEG-1 Layer 3 (MP3)-Decoder|decoder-audio/mpeg, mpegversion=(int)1, layer=(int)3"`
² https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstpbutilsinstallplugins.html#gst-install-plugins-sync
³ https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstpbutilsinstallplugins.html#GstInstallPluginsReturn
Comment 1 Richard Hughes 2018-08-21 15:52:58 UTC
We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues
 
Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks.
Comment 2 Christian Stadelmann 2018-09-07 10:04:51 UTC
I just reopened the bug at GitHub: https://github.com/hughsie/PackageKit/issues/275


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.