How to tell GNOME menu items about environment variables?
aikishugyo at gmail.com
Wed Feb 20 09:12:17 UTC 2008
On Feb 20, 2008 5:54 PM, Rashkae <ubuntu at tigershaunt.com> wrote:
> Gernot Hassenpflug wrote:
> > Hello,
> > I am trying to get a Japanese input method to work with an application
> > launched from GNOME. This works fine from the terminal with:
> > $ export LANGUAGE="ja_JP.UTF-8"
> > $ export LANG="ja_JP.UTF-8"
> > $ export LC_ALL="ja_JP.UTF-8"
> > $ export XMODIFIERS="@im=kinput2"
> > $ kinput2-canna &
> > $ <execute command exactly as in GNOME menu item>
> > However, I cannot figure out how to include the environment variable
> > settings in the GNOME menu item command. Whatever combinations I have
> > tried, the error is returned that the file or directory does not
> > exist; i.e., GNOME cannot parse the combination of settings and
> > commands.
Thanks very much for the advice!
> Put all those commands in a shell script.
> $ chmod 755 ~/bin/runme
> Create a menu item in gnome to run this script. Of course, 'runme' can
> be substituted with any filename of your choice.
OK. I see also that in some menu items (I looked through a *lot*) the
item is something like:
sh -c "...",
so that is another option I guess. I just do not yet have a good
impression about what arguments the GNOME menu item launcher can
Again, many thanks,
More information about the ubuntu-users