nightcap icon indicating copy to clipboard operation
nightcap copied to clipboard

error: XSCREENSAVER_WINDOW is not set

Open jimjamz opened this issue 1 year ago • 4 comments

  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.

jimjamz avatar Jun 01 '24 13:06 jimjamz

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 avatar Jun 02 '24 11:06 abrasive

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/.

abrasive avatar Jun 02 '24 11:06 abrasive

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.

jimjamz avatar Jun 02 '24 11:06 jimjamz

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!

Pixelwolfnet avatar Aug 31 '24 02:08 Pixelwolfnet