View Full Version : user .desktop apps not visible on nautilus

September 26th, 2018, 01:16 PM

I am trying to add wine + dosbox as custom .desktop apps, using as location the ~/.local/share/applications ,
but there is no way to find them under the "Select Application" on .exe files.
Is this a "feature" of gnome to ignore them? Am I missing something?

thx in advance.

September 26th, 2018, 05:39 PM
Post the contents of one so we can see what syntax you've used.
Whether or not it needs more or has incorrect context.

September 26th, 2018, 10:48 PM


this the wine's one: (syntax as I found from Gnome's (https://developer.gnome.org/integration-guide/stable/desktop-files.html.en) site)

[Desktop Entry]

September 27th, 2018, 05:42 PM
Looks like you have too much going on. I would start by cutting out all duplicate entries, to at least parse it down.
And ftr, wine has no true desktop app, it's more of like an argument to run programs.
As in there is no such program as wine as an app you would open with a nice graphical interface, but more it's a program which runs another app within it.
Hard to explain. ( or easy to explain, I'm just not feeling it)

Typically if you want to create wine desktop launchers you make them specific to the program that would be run with wine.
So generically one would look something like this

Exec=wine /path/to/program/to/run

*The Exec line may or may not require more options depending on circumstances.

If you are looking for a right click option to run wine programs, (or the ability to run programs with designated extensions [such as .exe or msi or whatever windows extensions there are now]
The desktop file for that still exists on your system, but it is not part of the main usage and buried in the wine docs folder at /usr/share/doc/wine/examples.
What you can do is simply copy the wine.desktop file over to your local/share/applications folder like so

cp /usr/share/doc/wine/examples/wine.desktop ~/.local/share/applications
That should give you the wine program loader as an option in the select applications menu.

As far as dosbox is concerned I think it runs the same basic idea, where if you want to run dosbox's apps out of the box you need to make the launcher specific to them.
You use the same basic Exec line where as you run it with dosbox and then the path to the app you want it to run.
I guess more buried at the bottom of this page:

Hope it make sense of some kind.

September 29th, 2018, 06:26 AM
when you install dropbox it automatically creates a .desktop file. Not sure why you need to make one.

As for wine, debian upstream apparently "deactivated" all wine .desktop files https://bugs.launchpad.net/ubuntu/+source/wine/+bug/1711855, see last post for explanation and how to re-activate them. Alternatively you can install wine from zorinos ppa https://launchpad.net/~zorinos/+archive/ubuntu/wine-testing

September 29th, 2018, 07:26 PM
For .desktop files the Exec= line must end in %<a letter> to become available thru the context menu. Possibles are %U or %u or %F or %f
Normally there is a space between the end of the Exec= command & the %<a letter> ( but in rare cases no space..
For example, audacious.desktop uses
Exec=audacious %U

A rare case here for foobar2000 -

Exec=wine "C:\\Program Files (x86)\\foobar2000\\foobar2000.exe" /play Z:%f

September 29th, 2018, 07:38 PM
The proper .desktop for Wine Windows Program Loader (with translations) is

[Desktop Entry]
Name=Wine Windows Program Loader
Name[ar]=منظومة واين لتشغيل برامج وندوز
Name[cs]=Zavaděč programů pro Wine
Name[de]=Wine Windows-Programmstarter
Name[es]=Wine Cargador de programas de Windows
Name[lt]=Wine Windows programų paleidyklė
Name[nl]=Wine Windows programmalader
Name[sv]=Wine Windows Programstartare
Name[ro]=Wine - Încărcătorul de programe Windows
Name[ru]=Wine - загрузчик Windows программ
Name[uk]=Wine - завантажувач Windows програм
Name[fr]=Wine - Chargeur de programmes Windows
Name[ca]=Wine - Carregador d'aplicacions del Windows
Name[pt]=Carregador de aplicativos Windows Wine
Name[pt_br]=Carregador de aplicativos Windows Wine
Name[it]=Wine Carica Programmi Windows
Name[da]=Wine, Programstarter til Windows-programmer
Name[nb]=Wine - for kjøring av Windows-programmer
Name[nn]=Wine - for køyring av Windows-program
Name[sr]=Wine - дизач Windows програма
Name[sr@latin]=Wine - dizač Windows programa
Name[hr]=Wine - dizač Windows programa
Name[he]=Wine — מריץ תכניות Windows
Name[ja]=Wine Windowsプログラムローダー
Exec=wine start /unix %f

side note -
The proper .desktop to run winecfg is this, the .desktop should be named wine-winecfg.desktop

[Desktop Entry]
Name=Configure Wine
Name[cs]=Nastavení Wine
Name[sv]=Konfigurera Wine
Name[da]=Konfigurer Wine
Name[de]=Konfiguriere Wine
Name[eu]=Konfiguratu Wine
Name[fi]=Winen asetukset
Name[fr]=Configurer Wine
Name[he]=תצורת Wine
Name[pl]=Konfiguracja Wine
Name[ca]=Configureu el Wine
Name[it]=Configura Wine
Name[lt]=Wine nustatymai
Name[nl]=Wine configureren
Name[hu]=A Wine beállítása
Name[ru]=Настройка Wine
Name[el]=Ρύθμιση Wine
Name[es]=Configurar Wine
Name[pt]=Configurar o Wine
Name[pt_br]=Configurar o Wine
Comment=Change application-specific and general Wine options
Comment[cs]=Upravit specifická nastavení aplikací a obecné nastavení Wine
Comment[sv]=Ändra programspecifika och allmänna Wine-alternativ
Comment[de]=Ändere Wine Optionen und Applikations-spezifische Einstellungen
Comment[fi]=Muuta yleisiä ja sovelluskohtaisia Winen asetuksia
Comment[pl]=Konfigurowanie ustawień aplikacji i ogólnych opcji Wine
Comment[ca]=Canvieu la configuració general del Wine i especifiqueu opcions per a programes concrets
Comment[pt_br]=Configurar as opções do Wine e dos programas nele instalados
Comment[es]=Cambia la configuración de Wine en general o de una aplicación específica
Comment[el]=Αλλαγή γενικών ρυθμίσεων του Wine ή επιλογών εφαρμογών
Comment[ru]=Изменение общих параметров Wine и настройка параметров для отдельных приложений
Comment[hu]=Alkalmazásspecifikus és általános Wine beállítások módosítása
Comment[it]=Cambia le opzioni delle singole applicazioni e quelle generali di Wine
Comment[nl]=Verander instellingen voor specifieke programma's en Wine in het algemeen

October 2nd, 2018, 12:33 PM
many thanks guys!!!

sorry for my late reply , blame h/ware issues with the desktop :(