After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729202 - media-keys: Simplify launching custom commands
media-keys: Simplify launching custom commands
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-29 15:58 UTC by Bastien Nocera
Modified: 2014-07-03 13:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
media-keys: Remove unused "needs_term" argument (3.03 KB, patch)
2014-04-29 15:58 UTC, Bastien Nocera
committed Details | Review
media-keys: Set the keyring env for other launchers too (4.06 KB, patch)
2014-04-29 15:58 UTC, Bastien Nocera
committed Details | Review
media-keys: Simplify launching custom commands (3.86 KB, patch)
2014-04-29 15:59 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2014-04-29 15:58:47 UTC
.
Comment 1 Bastien Nocera 2014-04-29 15:58:51 UTC
Created attachment 275430 [details] [review]
media-keys: Remove unused "needs_term" argument
Comment 2 Bastien Nocera 2014-04-29 15:58:57 UTC
Created attachment 275431 [details] [review]
media-keys: Set the keyring env for other launchers too

Instead of only applying the keyring environment to custom shortcuts,
also apply it to other applications we launch.
Comment 3 Bastien Nocera 2014-04-29 15:59:04 UTC
Created attachment 275432 [details] [review]
media-keys: Simplify launching custom commands

Instead of launching the app ourselves, create a new GAppInfo from the
custom command's string.
Comment 4 Rui Matos 2014-05-06 14:05:50 UTC
Review of attachment 275430 [details] [review]:

ok
Comment 5 Rui Matos 2014-05-06 14:05:53 UTC
Review of attachment 275431 [details] [review]:

::: plugins/media-keys/gsd-media-keys-manager.c
@@ +231,3 @@
+	GVariantIter *iter;
+
+	variant = g_dbus_connection_call_sync (manager->priv->connection,

Can't we do this only once, asynchronously during startup ?
Comment 6 Rui Matos 2014-05-06 14:05:55 UTC
Review of attachment 275432 [details] [review]:

looks fine
Comment 7 Bastien Nocera 2014-07-03 13:21:58 UTC
(In reply to comment #5)
> Review of attachment 275431 [details] [review]:
> 
> ::: plugins/media-keys/gsd-media-keys-manager.c
> @@ +231,3 @@
> +    GVariantIter *iter;
> +
> +    variant = g_dbus_connection_call_sync (manager->priv->connection,
> 
> Can't we do this only once, asynchronously during startup ?

It's the same code that's currently in get_keyring_env(), so I'm going to leave it that way, and file a separate bug about it (bug 732687).
Comment 8 Bastien Nocera 2014-07-03 13:23:03 UTC
Attachment 275430 [details] pushed as 96e743b - media-keys: Remove unused "needs_term" argument
Attachment 275431 [details] pushed as e132a43 - media-keys: Set the keyring env for other launchers too
Attachment 275432 [details] pushed as 9f10057 - media-keys: Simplify launching custom commands