a standard for the user's default terminal

Emmanuele Bassi ebassi at gmail.com
Mon Oct 23 21:25:00 EEST 2006


Hi;

On Mon, 2006-10-23 at 20:14 +0200, Kevin Krammer wrote:

> > But since this seems to be such an important problem I'll try to find out
> > how to get KDE's terminal setting later today.
> 
> In KDE it could be done like this
> 
> terminal=$(kreadconfig --file kdeglobals --group General \
> 	--key TerminalApplication --default konsole)
> 
> If somebody can find a way to GNOME and XFCE I'll write the xdg-utils wrapper 
> script

For GNOME:

  TERM_EXEC_KEY="/desktop/gnome/applications/terminal/exec"
  TERM_EXEC_ARG_KEY="/desktop/gnome/applications/termina/exec_arg"

  TERM_EXEC=$( gconftool-2 --get ${TERM_EXEC_KEY})          # e.g. "gnome-terminal"
  TERM_EXEC_ARG=$( gconftool-2 --get ${TERM_EXEC_ARG_KEY} ) # e.g. "-x"

  terminal="$TERM_EXEC $TERM_EXEC_ARG"

Ciao,
 Emmanuele.




More information about the xdg mailing list