feat: add env option and refactor command generate method

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-30 18:36:52 +08:00
committed by Comix
parent 8ab6adc290
commit 1fb4539792
6 changed files with 191 additions and 27 deletions

View File

@ -80,7 +80,14 @@
Extra options can be passed in `options` argument:
1. `uid` (type u):
The user id as who is that application will be run.
This option might request a polikit authentication."
This option might request a polikit authentication.
2. `env` (type s):
passing some specific environment variables to Launch
this application, eg. 'LANG=en_US;PATH=xxx:yyy;'
NOTE:
when application try to be launched by other user identity,
all environment variables will be ignored.
/>
</method>
</interface>