I compiled Johnny Castaway screensaver on Haiku but where can I put the resources for the screensaver? Theres some wav files and other resources that the executable needs in order to function. Documentation says it needs to all be in the same folder, but when I look at the Screen Savers folder in Haiku it appears to be just executables.
Create a folder in boot/home/ for audios and animations.
Wherever you like, really. Then create a relative symlink to the executable in the screensavers directory.
Ok, the other issue I am having is that the executable only runs from Terminal. Double-clicking it from the Tracker does nothing.
Does it not even give an error message?
Screensavers are a special kind of executable, more like an external module, really, that aren’t supposed to work from Tracker, only from the Screensaver app or from
screen_blanker name_of_saver
BTW, how old is this screensaver code? Before BeOS got its own screensaver setup that Haiku has inherited, there was a third-party screensaver app called Blanket IIRC. If an old Blanket saver even still compiles, it won’t necessarily have the hooks into the current ss system.
It depends what you want to do. If you are running this as a simple SDL application, you may need some patches to the code, because the Tracker starts all application with the home directory as the current directory. Typically something like chdir(dirname(argv[0])); at the start of the main function would work.
If you are interested in making this a native screensaver, putting the resources in the executable file using xres and accessing them using BResource would be better. Then your screensaver will be a single file. But this probably involves rewriting a part of the code to load resources in this way.
I dont need this, i dont really want this … who am i kidding, i NEED this