mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
gendesk: add page and Chinese translation (#15385)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# gendesk
|
||||
|
||||
> 通过指定少量信息的命令来生成`.desktop`文件以及下载图标。
|
||||
> 更多信息:<https://gendesk.roboticoverlords.org>.
|
||||
|
||||
- 创建一个名为`应用程序`的`.desktop`文件:
|
||||
|
||||
`gendesk -n --name "{{应用程序}}" --exec "{{/路径/到/应用程序}}" --icon "{{/路径/到/图标.png}}" --comment "{{这是一个应用程序}}"`
|
||||
|
||||
- 创建一个名为`应用程序`的`.desktop`文件, 不显示任何输出,如果存在则覆盖同名文件:
|
||||
|
||||
`gendesk -q -f -n --name "{{应用程序}}" --exec "{{/路径/到/应用程序}}" --icon "{{/路径/到/图标.png}}" --comment "{{这是一个应用程序}}"`
|
||||
|
||||
- 显示帮助信息:
|
||||
|
||||
`gendesk -h`
|
||||
@@ -0,0 +1,16 @@
|
||||
# gendesk
|
||||
|
||||
> Specifies the command to generate a `.desktop` file and a download icon with minimal information.
|
||||
> More information: <https://gendesk.roboticoverlords.org>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user