KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
28.73k stars 1.19k forks source link

libwebkit2gtk-4.1.so.0 missing #1801

Closed Erwin-Iosef closed 3 weeks ago

Erwin-Iosef commented 3 weeks ago

Is there an existing issue for this?

Current Behavior

I use Arch Linux and when running spotube(spotube-bin AUR) from the CLI, I get the following error: spotube: error while loading shared libraries: libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory

Expected Behavior

Run Spotube normally I guess.

Steps to reproduce

  1. I ran spotube on the command line.
  2. It returned: spotube: error while loading shared libraries: libwebkit2gtk-4.1.so.0: cannot open shared object file: No such file or directory

Operating System

Arch Linux

Spotube version

v3.8.0-1

Installation source

Arch User Repository (AUR)

Additional information

There's already a workaround for this and that is to install webkit2gtk-4.1 from the repos.

The question is, will the aur package mark it as a dependency or will it move to use the standard webkitgtk package?

Self grab

tomodachi94 commented 3 weeks ago

The spotube-bin package in AUR has a known missing dependency on libwebkit2gtk: https://aur.archlinux.org/packages/spotube-bin#comment-986938

KRTirtho commented 3 weeks ago

I forgot about AUR! Sorry!! I'll fix it right way

KRTirtho commented 3 weeks ago

I've updated the AUR package. You can try upgrading or reinstalling Spotube to fix the issue

Erwin-Iosef commented 3 weeks ago

I forgot about AUR! Sorry!! I'll fix it right way

No problem. Will test fix right away.

Nope, still same issue(with same error), I think I forgot to tell you I already have webkit2gtk installed. The issue is it requires the 4.1 version of the package. Which is present in arch repos and installing it fixes the problem. So.... The issue is in the library although I think it's good that you added the webkit as a dependency anyway.

So, will it now still use the 4.1 version of webkit(whose libraries are not in the regular webkit package), or will it be updated to use the regular webkit version, that's the question πŸ˜…

KRTirtho commented 3 weeks ago

Ok so I guess using webkit2gtk-4.1 should fix the issue?

Erwin-Iosef commented 3 weeks ago

It does and spotube does work as it should but then. Why not make it use the regular webkit libraries instead of the 4.1, if possible?

OR Like, maybe add the webkit 4.1 as a dependency for now but maybe in the next release or hotfix, make it use the regular webkit package instead?

KRTirtho commented 3 weeks ago

It does and spotube does work as it should but then. Why not make it use the regular webkit libraries instead of the 4.1, if possible?

Well, the library under the hood looks for webkit2gtk-4.1.so to make sure we've access to the feature level. And AUR's webkit2gtk provides the shared object as webkit2gtk-4.0.so so it can't use it. But Spotube can be built with webkit2gtk-4.0

Ok I'll upgrade the depdencies once again

KRTirtho commented 3 weeks ago

Try re-installing/upgrading spotube. Now, it should work

Erwin-Iosef commented 3 weeks ago

And AUR's webkit2gtk provides the shared object as webkit2gtk-4.0.so so it can't use it.

Yeah same for the regular repo one too. Just provides 4.0

But Spotube can be built with webkit2gtk-4.0

So, what's the plan for now? Stick with 4.1 for the time being?

EDIT: Never mind, probably Linux distros may move on to 4.1 since Fedora had plans to stop webkit2gtk4.0 from January this year.

https://fedoraproject.org/wiki/Changes/Remove_webkit2gtk-4.0_API_Version

I guess it's just best to see what will follow for a time, and arch is already giving out a built 4.1 package so there's virtually no trouble from using it apart from an increase of storage space use.

Ok I'll upgrade the depdencies once again

Already did and it works, thanks!

Erwin-Iosef commented 3 weeks ago

@KRTirtho Shall I close the issue now, since it's kinda solved?

KRTirtho commented 3 weeks ago

It's solved so please close itπŸ‘

Erwin-Iosef commented 3 weeks ago

Thank you for your help. Have a nice day.