Wine desktop files

Hi all

I install some windows games via wine.
At desktop appeared desktop entries,
but it marked with an exclamation mark.

How can i get rid of exclamation marks?

OS= Fedora Linux 38 x86_64

At Cinamon no exclamation mark.

Try to validate the problematic launchers:

desktop-file-validate "$(xdg-user-dir DESKTOP)"/*.desktop

[kiril@HPNB Desktop]$ ls -l
загалом 24
-rwxr-xr-x. 1 kiril kiril 387 кві 9 19:45 ‘Дело о банде Соленого ущелья.desktop’
-rw-r–r–. 1 kiril kiril 355 кві 9 19:02 ‘Дело о морской капусте.desktop’
-rwxr-xr-x. 1 kiril kiril 377 кві 9 19:14 ‘Дело о похищенной раковине.desktop’
-rwxr-xr-x. 1 kiril kiril 413 кві 9 19:31 ‘Дело о чудовище из Коралловой бухты.desktop’
-rwxr-xr-x. 1 kiril kiril 371 кві 9 19:36 ‘Дело о школьном призраке.desktop’
-rw-r–r–. 1 kiril kiril 87 кві 10 14:19 user-home.desktop
[kiril@HPNB Desktop]$

[kiril@HPNB Desktop]$
[kiril@HPNB Desktop]$ desktop-file-validate “$(xdg-user-dir DESKTOP)”/*.desktop
[kiril@HPNB Desktop]$ desktop-file-validate *.desktop
[kiril@HPNB Desktop]$

No output.

1 Like

Let’s check the contents of one of the launchers:

cat -A "$(xdg-user-dir DESKTOP)/Дело о морской капусте.desktop"

$ cat -A “$(xdg-user-dir DESKTOP)/Дело о морской капусте.desktop”
[Desktop Entry]$
Name=M-PM-^TM-PM-5M-PM-;M-PM-> M-PM-> M-PM-M-QM-^@M-QM-^AM-PM-:M-PM->M-PM-9 M-PM-:M-PM-0M-PM-?M-QM-^CM-QM-^AM-QM-^BM-PM-5$
Exec=env WINEPREFIX=“/home/kiril/.wine” wine C:\\users\\Public\\Desktop\\M-PM-^TM-PM-5M-PM-;M-PM->\ M-PM->\ M-PM-M-QM-^@M-QM-^AM-PM-:M-PM->M-PM-9\ M-PM-:M-PM-0M-PM-?M-QM-^CM-QM-^AM-QM-^BM-PM-5.lnk$
Path=/home/kiril/.wine/dosdevices/c:/Program Files (x86)/Freddi Fish/Freddi1/$
[kiril@HPNB ~]$

[Desktop Entry]
Name=Дело о морской капусте
Exec=env WINEPREFIX=“/home/kiril/.wine” wine C:\\users\\Public\\Desktop\\Дело\ о\ морской\ капусте.lnk
Path=/home/kiril/.wine/dosdevices/c:/Program Files (x86)/Freddi Fish/Freddi1/

1 Like

It seems like the exclamation mark is a feature of pcmanfm-qt (the LXQt file manager, which also handles the desktop icons).

Trusting executables - lxqt/pcmanfm-qt Wiki:

By default, executable files are not “trusted”, which means that a prompt dialog will be shown if the user (double) clicks them. Desktop entries (files whose real names end with .desktop), that are not inside ~/.local/share/applications or /usr/share/applications, may have a special emblem on their icons, showing that they are not trusted

If you right-click on the desktop icon, there should be an option “Trust this executable”.