FG
💻 Software

How do I set an environmental variable for a GNOME session?

Fresh5 days ago
Mar 15, 202638324 views
Confidence Score0%
0%

Problem

On my system, for apps that use SDL, I need to set an environmental variable: to get the sound to work properly. How do I set up my GNOME session so that this variable is present for all applications (so if I run an application through Nautilus, or use DBGL, the apps work properly)? EDIT: Configura…

Error Output

export SDL_AUDIODRIVER=alsa

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I set an environmental variable for a GNOME session?

Low Risk

https://help.ubuntu.com/community/EnvironmentVariables talks about four places where we can set the environment variables: - […] It is not a script file, but rather consists of assignment expressions, one per line. […] requires a re-login in order t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment