Re: List of installed applications from prefs.js
- From: Yaa101 <yaa101 xs4all nl>
- To: Amy C <mathematical coffee gmail com>
- Cc: gnome-shell-list gnome org
- Subject: Re: List of installed applications from prefs.js
- Date: Fri, 24 Aug 2012 16:43:14 +0200
Hi Amy,
Dunno if this helps, on my system (Mageia2) the best indicator of
installed apps is /usr/share/applications.
In there is a .desktop file defined for each (from the repo) installed
application.
You can enum these with GIO and request a desktopAppInfo from each of
them, the desktopAppIfo contains info on path, icon, name etc...
Success!
--
(o_
//\ Regards, Groeten,
V_/_ Bas Burger.
On Fri, 24 Aug 2012 22:31:21 +1000
Amy C <mathematical coffee gmail com> wrote:
> Hi all,
>
> I'm trying to get a list of all installed applications on the system -
> by "installed", the ones that turn up in the gnome-shell application
> list will do.
>
> Usually I would use Shell.AppSystem.get_default.get_all() to get this
> list, but in this case I want to get the list from the prefs.js
> widget. Hence, I can't use Shell.
>
> I also tried using a Gtk.AppChooserDialog but this doesn't show all
> applications (e.g. the terminal, which I definitely want to show up),
> and one of the list users (Milan) pointed out to me that this is
> because the terminal has no MIME types.
>
> So, how can I get a list of installed applications from a process
> outside of the gnome-shell one (no access to Shell, etc)?
>
> For example gcampax's Auto Move Windows extension has a prefs dialog
> where you can select an application to apply a rule to, but it uses
> Gtk.AppChooserDialog so if I wanted to apply a rule to the Terminal, I
> wouldn't be able to.
>
> cheers
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> https://mail.gnome.org/mailman/listinfo/gnome-shell-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]