[gnome-sound-recorder] PA_PROP_MEDIA_ROLE & PA_PROP_APPLICATION_ICON_NAME for application.



commit 2766e42442a4d0c4ea21a63c63c8d81d111486b3
Author: Kavan Mevada <kavanmevada gmail com>
Date:   Thu Apr 16 17:51:56 2020 +0000

    PA_PROP_MEDIA_ROLE & PA_PROP_APPLICATION_ICON_NAME for application.
    
    Fix: https://gitlab.gnome.org/GNOME/gnome-sound-recorder/-/issues/12

 src/application.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index 0ba1722..790d093 100644
--- a/src/application.js
+++ b/src/application.js
@@ -38,6 +38,8 @@ var Application = GObject.registerClass(class Application extends Gtk.Applicatio
         super._init({ application_id: pkg.name });
         GLib.set_application_name(_('Sound Recorder'));
         GLib.set_prgname('gnome-sound-recorder');
+        GLib.setenv('PULSE_PROP_media.role', 'production', 1);
+        GLib.setenv('PULSE_PROP_application.icon_name', pkg.name, 1);
 
         this.add_main_option('version', 'v'.charCodeAt(0), GLib.OptionFlags.NONE, GLib.OptionArg.NONE,
             'Print version information and exit', null);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]