O que é o campo TryExec nos arquivos .desktop?

10

Pesquisei bastante e não consegui encontrar uma resposta para isso. O que o campo TryExec faz nos arquivos .desktop? Como isso difere do campo Exec ?

    
por Rohan 17.02.2016 / 21:02

1 resposta

5

De acordo com standards.freedesktop.org , o TryExec entrada leva o seguinte:

Path to an executable file on disk used to determine if the program is actually installed. If the path is not an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it is not executable, the entry may be ignored (not be used in menus, for example).

Especificação de início automático do aplicativo de área de trabalho declara:

A .desktop file with a non-empty TryExec field MUST NOT be autostarted if the value of the TryExec key does NOT match with an installed executable program.

Ao contrário de Exec e apesar do nome semelhante, TryExec não executa realmente seu valor.

    
por 05.04.2018 / 18:41

Tags