mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 06:11:47 -04:00
enter: Don't overwrite the DISPLAY
Now that we're using the same display number in the sandbox as on the host, we can forget about overwriting it with :99. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Alexander Larsson
parent
ca992c7862
commit
a03111a3d1
@@ -248,7 +248,6 @@ flatpak_builtin_enter (int argc,
|
||||
for (e = environment; e < environment + environment_len; e = e + strlen (e) + 1)
|
||||
{
|
||||
if (*e != 0 &&
|
||||
!g_str_has_prefix (e, "DISPLAY=") &&
|
||||
!g_str_has_prefix (e, "PULSE_SERVER=") &&
|
||||
!g_str_has_prefix (e, "PULSE_CLIENTCONFIG=") &&
|
||||
!g_str_has_prefix (e, "XDG_RUNTIME_DIR=") &&
|
||||
@@ -264,9 +263,6 @@ flatpak_builtin_enter (int argc,
|
||||
xdg_runtime_dir = g_strdup_printf ("/run/user/%d", uid);
|
||||
g_ptr_array_add (envp_array, g_strdup_printf ("XDG_RUNTIME_DIR=%s", xdg_runtime_dir));
|
||||
|
||||
if (g_file_test ("/tmp/.X11-unix/X99", G_FILE_TEST_EXISTS))
|
||||
g_ptr_array_add (envp_array, g_strdup ("DISPLAY=:99.0"));
|
||||
|
||||
pulse_path = g_strdup_printf ("/run/user/%d/pulse/native", uid);
|
||||
if (g_file_test (pulse_path, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user