nautilus 또는 pcmanfm을 시작할 때 이 인수가 왜 그렇게 중요한지 궁금합니다. 그렇지 않으면 어떻게 되나요?
또한 %U가 무엇을 의미하는지 알고 싶습니다.
Exec=pcmanfm %U
답변1
바탕 화면을 관리하기 위해 백그라운드에서 실행 중인 노틸러스 인스턴스가 있으므로 이후 노틸러스 인스턴스를 실행할 때 --no-desktop
노틸러스에게 바탕 화면 아이콘 등을 관리하려고 시도하지 않도록 지시합니다.
%U
URL 목록을 전달하는 방법:
%U A list of URLs. Each URL is passed as a separate argument to the
executable program. Local files may either be passed as file: URLs
or as file path.
나머지 목록은 여기에서 확인할 수 있습니다."Exec 중요 섹션"freedesktop.org 문서. 나머지는 여기 있습니다.
발췌
Code Description
---- -----------
%f A single file name, even if multiple files are selected. The system
reading the desktop entry should recognize that the program in
question cannot handle multiple file arguments, and it should
should probably spawn and execute multiple copies of a program
for each selected file if the program is not able to handle
additional file arguments. If files are not on the local file
system (i.e. are on HTTP or FTP locations), the files will be
copied to the local file system and %f will be expanded to point
at the temporary file. Used for programs that do not understand
the URL syntax.
%F A list of files. Use for apps that can open several local files
at once. Each file is passed as a separate argument to the
executable program.
%u A single URL. Local files may either be passed as file: URLs or
as file path.
%U A list of URLs. Each URL is passed as a separate argument to the
executable program. Local files may either be passed as file: URLs
or as file path.
%d Deprecated.
%D Deprecated.
%n Deprecated.
%N Deprecated.
%i The Icon key of the desktop entry expanded as two arguments, first
--icon and then the value of the Icon key. Should not expand to any
arguments if the Icon key is empty or missing.
%c The translated name of the application as listed in the appropriate
Name key in the desktop entry.
%k The location of the desktop file as either a URI (if for example
gotten from the vfolder system) or a local filename or empty if no
location is known.
%v Deprecated.
%m Deprecated.