You are not logged in.

#1 2025-12-21 18:14:55

teccin
Member
Registered: 2025-12-21
Posts: 2

.desktop file won't work

There's this strange issue I'm having, where created .desktop files for this one app aren't working. I have the application executable at ~/Apps/Mine-imator/Mine-imator.

~/Apps/Mine-imator/Data contains some libraries which might be relevant:

> ls Apps/Mine-imator/Data
Fonts      languages.midata  libcrypto.so.1.1           libomp.so.5      libvdpau.so.1   Render
icon.webp  legacy.midata     libdouble-conversion.so.3  libsndio.so.7.0  libx264.so.155  Splashes
Languages  libbz2.so.1.0     libnettle.so.7             libssl.so.1.1    Minecraft

I can run it just fine from Zsh, but if I try to launch from a .desktop file, it says this:

/home/austin/Apps/Mine-imator/Mine-imator: /usr/lib/libtiff.so.5: no version information available (required by /home/austin/Apps/Mine-imator/Mine-imator)
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Reinstalling does not help. I am on Wayland.

Offline

#2 2025-12-21 18:20:08

teccin
Member
Registered: 2025-12-21
Posts: 2

Re: .desktop file won't work

Never mind, I got it to work.

Solution: change .desktop entry to this

[Desktop Entry]
Type=Application
Name=Mine-imator
Path=/home/austin/Apps/Mine-imator/
Exec=env QT_QPA_PLATFORM=xcb LD_LIBRARY_PATH=/home/austin/Apps/Mine-imator:$LD_LIBRARY_PATH ./Mine-imator
Terminal=false

Offline

#3 2025-12-21 18:28:32

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: .desktop file won't work

this is probably an issue with ur env rather than your desktop file, e.g. you're setting qt_qpa_platform to wayland some where else

Offline

#4 2025-12-21 20:29:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: .desktop file won't work

Reinstalling does not help. I am on Wayland.

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

"Solution:"

Exec=env QT_QPA_PLATFORM=xcb

https://aur.archlinux.org/packages/mine-imator-bin looks like some binary bundle, possibly Qt5 - what exactly is "Mine-imator"

I can run it just fine from Zsh

Your "solution" along the zsh situation suggests you're currently unconditionally running Qt clients from zsh on xwayland.

Offline

Board footer

Powered by FluxBB