Re: [Vala] Get default terminal emulator?
- From: PCMan <pcman tw gmail com>
- To: Thomas Jollans <t jollybox de>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Get default terminal emulator?
- Date: Sat, 23 Jun 2012 04:33:27 +0800
On Fri, Jun 22, 2012 at 6:46 PM, Thomas Jollans <t jollybox de> wrote:
Hi list,
How do I get the user's default terminal emulator with GLib/GIO? I would
assume it involves GLib.AppInfo in some way, but it's not as straightforward
as that since there isn't really a MIME type associated with opening a
terminal window as far as I know.
Is there even a freedesktop-standard way of doing this? On GNOME, I imagine
one could go into the depths of GSettings, but can that work for non Gnome
users? On Debian/Ubuntu, running x-terminal-emulator will get you the system
default, but that doesn't exist on other systems and disregards the user's
preferences.
Thanks
Thomas
_______________________________________________
Unfortunately, no. They hard-coded a list of well-known terminal
emulators, and try them one by one.
This is what GAppInfo does in glib/gio. The worst thing is, there is
no config option for this.
The config value in gconf/gsettings does not change the behavior of GAppInfo.
The glib/gio devs know this, but they just did not fix it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]