Skip to content

rework linux init

Summary

if (Native.XInitThreads() == 0)

assumes x11 is used. It is not always the case.

The call could be removed and it should be documented that the user may need to call it themselves (with the help of https://github.com/terrafx/terrafx.interop.xlib for example).

Minimal project and steps to reproduce

Run a minimal sample on a wayland system?

What is the current bug behavior?

Crash.

Unable to load shared library 'libX11' or one of its dependencies

What is the expected correct behavior?

No error.

Does it work on other plaforms? Does it work with the official VLC apps?

Yes this is LibVLCSharp on Linux-only.

Relevant LibVLC logs and/or screenshots

https://stackoverflow.com/questions/74934138/read-audio-file-duration-in-c-sharp-on-linux-with-net-6

Environment

  • OS:
  • Version
  • Device:
  • LibVLC version and architecture
  • LibVLCSharp version

Possible fixes

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information