1
0
Fork 0
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:
witt 2025-01-06 05:04:20 +08:00 committed by GitHub
parent 150f71028b
commit f09095bf22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 0 deletions

View 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
View 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`