Invalid variable name in 99-environment.conf

I use some custom env rules in /etc/environment

export QT_LOGGING_RULES="*=false"
export EDITOR='nano'
export QT_PLUGIN_PATH=/usr/lib/qt/plugins

the rules work but why are these error messages displayed?

22.12.20 14:01	systemd	/usr/lib/environment.d/99-environment.conf:7: invalid variable name "export QT_LOGGING_RULES", ignoring.
22.12.20 14:01	systemd	/usr/lib/environment.d/99-environment.conf:8: invalid variable name "export EDITOR", ignoring.
22.12.20 14:01	systemd	/usr/lib/environment.d/99-environment.conf:9: invalid variable name "export QT_PLUGIN_PATH", ignoring.
1 Like

thanks, do I have to remove the quotation too or is this part correct?


@cluster In your response, you changed nothing. If you look at your own error logs, it is skipping all three of your variables. The Arch wiki is clear on what needs to be done. I suggest you read it. Also, @jonathon even gave you the answer. HINT - It needs to be applied to ALL the variables to work.

1 Like

But he did change it? He removed the invalid "export"s

1 Like

Right, I notice that now. Thank you for pointing it out. My apologies to the OP.


He did, though. He removed export from all three lines and is now asking about the quotation marks.

Not sure, but I don’t think so. Give it a try and see what happens?

1 Like

From the reading of the Arch Wiki, and my own variables with plasma, I do not have any quotation marks, tick marks, or any other stuff just blah=blah.

1 Like