diff --git a/pages.zh/common/gendesk.md b/pages.zh/common/gendesk.md new file mode 100644 index 0000000000..ab7a3c4eb9 --- /dev/null +++ b/pages.zh/common/gendesk.md @@ -0,0 +1,16 @@ +# gendesk + +> 通过指定少量信息的命令来生成`.desktop`文件以及下载图标。 +> 更多信息:. + +- 创建一个名为`应用程序`的`.desktop`文件: + +`gendesk -n --name "{{应用程序}}" --exec "{{/路径/到/应用程序}}" --icon "{{/路径/到/图标.png}}" --comment "{{这是一个应用程序}}"` + +- 创建一个名为`应用程序`的`.desktop`文件, 不显示任何输出,如果存在则覆盖同名文件: + +`gendesk -q -f -n --name "{{应用程序}}" --exec "{{/路径/到/应用程序}}" --icon "{{/路径/到/图标.png}}" --comment "{{这是一个应用程序}}"` + +- 显示帮助信息: + +`gendesk -h` diff --git a/pages/common/gendesk.md b/pages/common/gendesk.md new file mode 100644 index 0000000000..4daa54160a --- /dev/null +++ b/pages/common/gendesk.md @@ -0,0 +1,16 @@ +# gendesk + +> Specifies the command to generate a `.desktop` file and a download icon with minimal information. +> More information: . + +- Create a `.desktop` file named `app`: + +`gendesk -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"` + +- Create a `.desktop` file named `app`, do not display any output, and overwrite it if it exists: + +`gendesk -q -f -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"` + +- Display help: + +`gendesk -h`