1 string contents = 2 `[Desktop Entry] 3 Name=Program 4 Name[ru]=Программа 5 Exec="quoted program" %i -w %c -f %k %U %D %u %f %F 6 Icon=folder 7 Icon[ru]=folder_ru`; 8 auto df = new DesktopFile(iniLikeStringReader(contents), "/example.desktop"); 9 assert(df.expandExecValue(["one", "two"], "ru") == 10 ["quoted program", "--icon", "folder_ru", "-w", "Программа", "-f", "/example.desktop", "one", "two", "one", "one", "one", "two"]); 11
execValue, desktopfile.utils.expandExecArgs, startApplication
Expand "Exec" value into the array of command line arguments to use to start the program. It applies unquoting and unescaping.