How to determine firefox icon?



Hi all,

I need to determine, in an extension, the firefox icon to show it in shell result overview.

I am using this piece of code:

    getResultMeta: function(resultId) {
        let appSys = Shell.AppSystem.get_default();
        let app = appSys.lookup_app('mozilla-firefox.desktop');
       
        let bookmark_name = resultId.name;

        return {    'id': resultId,
                            'name': bookmark_name,
                            'createIcon': function(size) {
                                                                return app.create_icon_texture(size);
                                                        }
        };
    },

but the string 'mozilla-firefox.desktop' is not correct for some distro.

What is the correct method to determine the firefox icon?

Thanks.




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