Skip to content

[libdlgmod] Improve Logic to Force X11 Backend - #591

Open
samuelvenable wants to merge 3 commits into
OpenNBS:developmentfrom
samuelvenable:development
Open

[libdlgmod] Improve Logic to Force X11 Backend#591
samuelvenable wants to merge 3 commits into
OpenNBS:developmentfrom
samuelvenable:development

Conversation

@samuelvenable

Copy link
Copy Markdown
  • The full diff can be viewed here.
  • The old code turned off Wayland Display environment variable completely:
// effects the entirety of opennbs
setenv("WAYLAND_DISPLAY", "", 1);
  • The new code only effects the shell dialog child processes:
// only effects kdialog
setenv("QT_QPA_PLATFORM", "xcb", 1);
// only effects zenity
setenv("GDK_BACKEND", "x11", 1);

- The full diff can be viewed [here](samuelvenable/libdlgmod@9286386).
- The old code turned off Wayland Display environment variable completely: 
```cpp
// effects the entirety of opennbs
setenv("WAYLAND_DISPLAY", "", 1);
```
- The new code only effects the shell dialog child processes:
```cpp
// only effects kdialog
setenv("QT_QPA_PLATFORM", "xcb", 1);
// only effects zenity
setenv("GDK_BACKEND", "x11", 1);
```
- The full diff can be viewed [here](samuelvenable/libdlgmod@9286386).
- The old code turned off Wayland Display environment variable completely: 
```cpp
// effects the entirety of opennbs
setenv("WAYLAND_DISPLAY", "", 1);
```
- The new code only effects the shell dialog child processes:
```cpp
// only effects kdialog
setenv("QT_QPA_PLATFORM", "xcb", 1);
// only effects zenity
setenv("GDK_BACKEND", "x11", 1);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant