I changed the desktop file to being a json file after seeing an example. But I don’t know how to make the UI work so that I can select a video. Does the code have to be changed? Or, can I simply make it work again by just adjusting what libraries are imported in the qml files?
For reference, I just scored 60 percent on a Java course while in school. So, my coding skills are very weak. I have a better grasp on computer networking. So, I am hoping someone who knows better can shed some light on how to make this plugin work again.
Okay. So, I copied it over to plasma ~/.local/share/plasma/wallpapers/ and the UI seems to work. Now how can we get it to play video?
I tried the install.sh method. Didn’t work and just gave me this:
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Plugin Id: com.luisbocanegra.smart.video.wallpaper
Version: 0.1.0
CMake Error at CMakeLists.txt:21 (find_package):
By not providing "FindPlasma5Support.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Plasma5Support", but CMake did not find one.
Could not find a package configuration file provided by "Plasma5Support"
(requested version 6.0.0) with any of the following names:
Plasma5SupportConfig.cmake
plasma5support-config.cmake
Add the installation prefix of "Plasma5Support" to CMAKE_PREFIX_PATH or set
"Plasma5Support_DIR" to a directory containing one of the above files. If
"Plasma5Support" provides a separate development package or SDK, be sure it
has been installed.
So, I just copied the ‘package’ folder over to ~/.local/share/plasma/wallpapers/ and then renamed the ‘package’ folder to the ID ‘com.luisbocanegra.smart.video.wallpaper’ in the json file.
Try switching back to image wallpaper, close the wallpaper settings window then run journalctl -f, open the wallpaper settingsagain and change back to smart video wallpaper and check if there are any errors or attach them here/gist/ or issue in the repo
I think something is wrong in my environment or some compatibility packages are making it work on my computer by using Qt5 things instead of just qt6 since that autoPlay property is indeed not in Qt 6.2+. I tried a clean Arch installation in a vm and can reproduce the error there. Will finish the porting there thank you.
Please pull the latest commit and try again, I think it should work now as I removed everything from my system except plasma and was able to reproduce your error.
I can move the ‘package’ folder to ~/.local/share/plasma/wallpapers/ and then rename it to com.luisbocanegra.smart.video.wallpaper. Then that is the result I get.