Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice is needed. KOHighlights won't run on recent Linux releases. #50

Open
noembryo opened this issue Nov 6, 2024 · 3 comments
Open

Comments

@noembryo
Copy link
Owner

noembryo commented Nov 6, 2024

I don't use Linux, but I do try to build the KOHighlights app to be compatible with as many Linux system I can.
The way I do this, is by keep a semi-old (Xubuntu 18) image somewhere, and use it to compile the builds.

The reason I keep this old version, is to have compatibility with all the versions after this, since I read that this is the way Linux builds work. If something is compatible with 18 is also compatible with 20, etc.
And it was, until recently, working like this.

The newer releases of Linux(?) though, or the recent change from Python 2 and PySide to Python 3 and PiSide 6 in the app, changed this somehow (see #40 and #42 and #49), and I don't know how to fix it.

So any dev with Linux knowledge out there, that can help by pitching any ideas is really welcomed.. 🙏

@noembryo noembryo pinned this issue Nov 6, 2024
@noembryo noembryo changed the title KOHighlights won't run on recent Ubuntu releases. Linux advice is needed. KOHighlights won't run on recent Linux releases. Advice is needed. Nov 6, 2024
@noembryo noembryo changed the title KOHighlights won't run on recent Linux releases. Advice is needed. Advice is needed. KOHighlights won't run on recent Linux releases. Nov 6, 2024
@TiberiusRegenschein
Copy link

TiberiusRegenschein commented Dec 25, 2024

Hi noembryo, many modern Linux systems are moving away from X11 as protocol to talk to the display server and are using wayland. instead. It looks like your appimage depends on X11. To verify this I tested 2 scenarios:

  1. Switching the protocol back to X11. Your application starts
  2. Telling wayland that it should start your application in X11 mode, in case for me a KDE /QT environment with QT_QPA_PLATFORM=xcb ./KoHighlights . Also in this case your application starts with no problems. For Gnome based distribution it looks like GDK_BACKEND=x11 ./KoHighlights is the right way to start the application. Not tested because I do not have a Gnome based distribution at hand. I am using a distribution based on recent Ubuntu 23.10.
    I hope that helps.

@noembryo
Copy link
Owner Author

Thank you very much for your information.
It's really appreciated.
Hopefully it will help other Linux users to run the app.
🙏

BTW, I don't suppose there is anything I can do to help here, is there?
The only fields I can influence is the Python code and the PyInstaller parameters..

@TiberiusRegenschein
Copy link

Hi, I am probably not a lot of help here when it comes to the PyInstaller parameters.

Appreciating that you do a Linux version at all with your not so favorable experience with Linux, I still would suggest to move on from 18.04 to 23.04, the latest LTS release, with a support time of 5 years again.
I saw also the discussion about an AppImage, which is the right way to go for Linux system to achieve maximum compatibility with different systems.
But please, I know that this is a whole new territory for such a project. I can work I can live with the suggested work-around for a while and I am grateful for the work you are doing 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants