Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wslg cannot open display if wsl started with Task Scheduler #8217

Closed
1 of 2 tasks
mangkoran opened this issue Apr 1, 2022 · 2 comments
Closed
1 of 2 tasks

wslg cannot open display if wsl started with Task Scheduler #8217

mangkoran opened this issue Apr 1, 2022 · 2 comments

Comments

@mangkoran
Copy link

mangkoran commented Apr 1, 2022

Version

Windows version: 10.0.22000.593

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

ArchWSL

Other Software

Emacs 29.0.50 (master branch)

Repro Steps

  1. Create a task in Task Scheduler with the following properties:
    image
    image
    image

Expected Behavior

GUI apps (in my case emacs) should be able to open

Actual Behavior

GUI apps cannot open. In my case (emacs), following error returned:

(emacs:1360): Gtk-WARNING **: 12:35:51.668: cannot open display: :0

Diagnostic Logs

weston.log

@mangkoran
Copy link
Author

mangkoran commented Apr 1, 2022

Note:

  • My goal is to have WSL started at boot or user login.
  • WSL is started successfully, but any GUI apps cannot be opened. If I do wsl --shutdown and re-open WSL, GUI apps will be able to open.

@mangkoran mangkoran changed the title cannot open open display if wsl started with Task Scheduler cannot open display if wsl started with Task Scheduler Apr 2, 2022
@mangkoran mangkoran changed the title cannot open display if wsl started with Task Scheduler wslg cannot open display if wsl started with Task Scheduler Apr 2, 2022
@mangkoran
Copy link
Author

Moved to wslg repo.

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

No branches or pull requests

1 participant