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

error: XSCREENSAVER_WINDOW is not set #1

Open
jimjamz opened this issue Jun 1, 2024 · 4 comments
Open

error: XSCREENSAVER_WINDOW is not set #1

jimjamz opened this issue Jun 1, 2024 · 4 comments

Comments

@jimjamz
Copy link

jimjamz commented Jun 1, 2024

  1. Made nightcap: winegcc -O2 nightcap.c -o nightcap.exe -lX11
  2. Moved nightcap.exe to /usr/local/bin/, automatically on $PATH.
  3. Moved Flying Windows.scr to /usr/local/bin/
  4. Appended the following to ~/.xscreensaver:
    "Flying Windows" nightcap.exe "Flying Windows.scr" \n\
  5. Running wine /usr/local/bin/Flying\ Windows.scr displays the screensaver settings.
  6. Running xscreensaver-settings shows the added screensaver available in the list, but the preview only displays a blank screen.
  7. The screensaver does not initiate at the specified time, only the blank screen.
  8. Running wine /usr/local/bin/nightcap.exe returns the error, error: XSCREENSAVER_WINDOW is not set.

From the README, it's not clear how to run the screensaver successfully.
The How section of the readme is not understandable or easy to follow.

@abrasive
Copy link
Owner

abrasive commented Jun 2, 2024

Hi mate, I'm sorry it's giving you trouble. I wrote this for myself & released it in the hope that others would get some enjoyment from it.

What happens if you run wine "Flying Windows.scr"?

@abrasive
Copy link
Owner

abrasive commented Jun 2, 2024

Sorry, I meant to write wine "Flying Windows.scr" /s to start the actual screensaver.

Notably, Flying Windows requires that you have Wingdings font installed. I dropped wingding.ttf in my ~/.fonts/.

@jimjamz
Copy link
Author

jimjamz commented Jun 2, 2024

Hi,

Yes, installing the wingding.ttf font, and running wine "Flying Windows.scr" /s does run the screensaver, albeit in WINE.
I don't see how the nightcap project helps with that though.
When I run xscreensaver-settings, I can see that the screensaver is listed, but there is no preview. It presents a blank screen. Okay, if that's just for the preview, but unfortunately, after waiting the minutes for the screensaver to start, it too is a blank screen.

@Pixelwolfnet
Copy link

Pixelwolfnet commented Aug 31, 2024

Hey there, I am basically having the same issue. I can initialize the screen saver with wine "factory.scr" /s
but in xscreensaver it just launches a black screen

I did also try to launch it straight through wine using xscreensaver but that also gave me a black screen. it did however have sound

                 "Factory"  /home/pixelwolfog/nightcap/nightcap.exe "factory.scr"               \n\
               "Factory T2" wine "/home/pixelwolfog/nightcap/factory.scr" /s            \n\

Any suggestions would be great but otherwise still a cool project!

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

3 participants