repkg icon indicating copy to clipboard operation
repkg copied to clipboard

linux support?

Open NikoPit opened this issue 8 months ago • 4 comments

maybe ilnux support?

NikoPit avatar Mar 30 '25 06:03 NikoPit

I would be in favor of that too. One could extract wallpaper engine files and use them on linux with something like hidamari.

MaKraMc avatar Mar 30 '25 18:03 MaKraMc

maybe ilnux support?

I had never worked with C# programming before, so I turned to ChatGPT for help. It told me to first install the dotnet-sdk. Since I’m using Arch Linux, the installation command with the package manager is:

sudo pacman -S dotnet-sdk

In the RePKG/RePKG.csproj file of the project, ChatGPT pointed out that the project’s target framework is: <TargetFramework>net472</TargetFramework>. This specifies .NET Framework 4.7.2, which is a Windows-only framework. By default, it outputs a Windows executable (.exe) that cannot run natively on Linux. ChatGPT suggested that I change it to: <TargetFramework>net8.0</TargetFramework>

Then use the following command to compile the project:

dotnet publish -c Release -r linux-x64 --self-contained true

Then, you will find your binary file in RePKG/bin/Release/net8.0/linux-x64/publish/

As I mentioned earlier, I'm not familiar with C#, so I'm unsure whether this is the best practice. However, it does produce a working binary. It displays correctly in the Wallpaper Engine Editor, but when I save it, and select my modified wallpaper in KDE wallpaper setting, it causes KDE Plasma to crash. (I'm using the plugin plasma6-wallpapers-wallpaper-engine-git from AUR, which allows KDE to display wallpapers that I’ve subscribed to from the Steam Workshop.)

foxmaid avatar May 07 '25 06:05 foxmaid

In the RePKG/RePKG.csproj file of the project, ChatGPT pointed out that the project’s target framework is: <TargetFramework>net472</TargetFramework>. This specifies .NET Framework 4.7.2, which is a Windows-only framework. By default, it outputs a Windows executable (.exe) that cannot run natively on Linux. ChatGPT suggested that I change it to: <TargetFramework>net8.0</TargetFramework>

There was a pull request on this project submitted on April, and that one completely changed .NET library to version 8. Maybe trying to use that one?

Also, why not try Wine? winehq.org. You can just install .NET 4 as normal and run the application directly.

Also consider using RePKG-GUI

Tianming-Wu avatar Aug 23 '25 17:08 Tianming-Wu

My fork has Linux Support: https://github.com/Parsa307/repkg

Commit made to support: https://github.com/Parsa307/repkg/commit/ed324d4a6156c021c5cbdc1dd9e0cdd3a81dfc60

Parsa307 avatar Aug 29 '25 13:08 Parsa307