[Evolution-users] Can't delete mail account

Patrick O'Callaghan poc at usb.ve
Wed Aug 13 21:57:42 UTC 2025


On Wed, 2025-08-13 at 14:15 -0700, Van Snyder wrote:
> On Wed, 2025-08-13 at 21:57 +0100, Patrick O'Callaghan wrote:
> > On Wed, 2025-08-13 at 11:02 -0700, Van Snyder via evolution-users
> > wrote:
> > > >    XDG_CURRENT_DESKTOP=GNOME gnome-control-center
> > > 
> > > Is this an environment setting or an Evolution command-line option?
> > > I
> > > tried the latter and it said "Cannot import any of the given URIs"
> > > 
> > > 
> > 
> > Since it's placed before the command, it's an environment setting.
> > 
> > > I don't run bash. If it's an environment setting, how do I do it in
> > > tcsh?
> > 
> > As far as I know, all Linux shells do this in exactly the same way.
> 
> In tcsh (and csh)
> 
> XDG_CURRENT_DESKTOP=GNOME gnome-control-center
> 
> results in "
> 
> Using "XDG_CURRENT_DESKTOP=GNOME: Command not found."
> 
> 

My mistake. It's been a good 30 years or more since I've used tcsh.

> tcsh (and csh) use a "setenv NAME value" syntax to set environment
> variables.
> 
> setenv XDG_CURRENT_DESKTOP GNOME gnome-control-center
> 
> results in "setenv: Too many arguments."

setenv takes two arguments, the variable and value. You have three, but
see below.

> So I read some bash stuff and realized that
> 
> XDG_CURRENT_DESKTOP=GNOME gnome-control-center
> 
> has the dual purpose of setting an environment variable and launching a
> program.
> 
> 
Indeed. Note that in this Bash version the environment variable is only
set for the program being called, and is then forgotten. If you want it
to persist you need to do 'VAR=value; export VAR'.

> In tcsh (and csh) one would need a semicolon after "GNOME", or two
> lines:
> 
> setenv XDG_CURRENT_DESKTOP GNOME; gnome-control-center
> 
> setenv XDG_CURRENT_DESKTOP GNOME
> gnome-control-center

Alternatively:

$ env XDG_CURRENT_DESKTOP=GNOME gnome-control-center

which should work independently of what Shell you're using). See
env(1).

poc


More information about the evolution-users mailing list