@kemona_halftau @thing I don’t think it actually broke anything except if you inputted a matching name but I reverted it anyway now.
I tried loading the windows assets and it spams ruby: warning: failed to load encoding (Windows-31J); use ASCII-8BIT instead on startup
@kemona_halftau @thing I did this:
diff --git a/binding-mri/wallpaper-binding.cpp b/binding-mri/wallpaper-binding.cpp
index 344825b..cf02998 100644
--- a/binding-mri/wallpaper-binding.cpp
+++ b/binding-mri/wallpaper-binding.cpp
@@ -330,7 +330,7 @@ end:
boost::replace_all(concatPath, "\\", "\\\\");
boost::replace_all(concatPath, "\"", "\\\"");
boost::replace_all(concatPath, "'", "\\x27");
- command << "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:" <<
+ command << "dbus-send --session --dest=org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:" <<
"var allDesktops = desktops();" <<
"for (var i = 0, l = allDesktops.length; i < l; ++i) {" <<
"var d = allDesktops[i];" <<
@@ -426,7 +426,7 @@ RB_METHOD(wallpaperReset)
}
} else if (desktop == "kde") {
std::stringstream command;
- command << "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:" <<
+ command << "dbus-send --session --dest=org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:" <<
"var allDesktops = desktops();" <<
"var data = {";
// Plugin, picture, color, mode, blur
I don’t know if it works or not. It hasn’t changed my wallpaper yet but maybe I just haven’t reached a point in the game where it does that.
@kemona_halftau @thing instead of using pyinstaller to turn the journal into a binary I just replaced it with a script that cd’s to the right directory and execs python so I can put environment variables in there, but it seems to be already using xwayland (qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "")
does oneshot itself need to be using xwayland too? I have SDL_VIDEODRIVER=wayland set so it’s using wayland currently
@kemona_halftau @thing Actually is the journal free software? The mkxp-oneshot repo contains build instructions but seemingly no source code. There is, however, this reimplementation that I will try to use.
Although, I’ll need to find another way to extract the image files:
First, aquire a copy of the Windows-version journal executable. Next, download ResourcesExtract and run it, either via Wine or from a Windows install. Set the filename to the journal executable and the destination to the images directory in your local copy of this repo. Set the program to extract only bitmaps, then press Start. Once extraction completes run the included Python script renameandconvert.py (requires ImageMagick), which will create the required PNGs.
I don’t want to run a proprietary Windows program to do this.
@kemona_halftau @thing I can’t even run the appimage (I assume because /lib64/ld-linux-x86-64.so.2 doesn’t exist at that path on my system)
> ./OneShot.appimage
exec: Failed to execute process './OneShot.appimage': The file exists and is executable. Check the interpreter or linker?
I compiled the engine yesterday (it required some patching to get it to build without conan) so I just need to extract the files from the AppImage somehow and then I can run it with the engine I compiled myself