feat: add GIO_LAUNCHED_DESKTOP_FILE to runtime envs

add hooks for dde-dock

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2024-03-06 17:41:26 +08:00
committed by Comix
parent 3b2674023c
commit 1b4fb5551d
10 changed files with 47 additions and 10 deletions

View File

@ -0,0 +1,4 @@
{
"Exec": "@CMAKE_INSTALL_PREFIX@/@AM_LIBEXEC_DIR@/dockEnv.sh",
"Args":[]
}

11
misc/hooks.d/dockEnv.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
# This hook is required by dde-dock that detect identity of Application.
# May be remove on later.
export GIO_LAUNCHED_DESKTOP_FILE_PID=$$
exec "$@"