abrasive / nightcap

Run Windows screensavers under xscreensaver, using copious quantities of wine
46 stars 0 forks source link

error: XSCREENSAVER_WINDOW is not set #1

Open jimjamz opened 1 month ago

jimjamz commented 1 month ago
  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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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.