mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
gendesk: add page and Chinese translation (#15385)
This commit is contained in:
parent
150f71028b
commit
f09095bf22
2 changed files with 32 additions and 0 deletions
16
pages.zh/common/gendesk.md
Normal file
16
pages.zh/common/gendesk.md
Normal file
|
@ -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`
|
16
pages/common/gendesk.md
Normal file
16
pages/common/gendesk.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue