Debian Codegraph @

common/backintime-askpass

raw
1 #!/bin/sh
2 # SPDX-FileCopyrightText: © 2008-2022 Oprea Dan
3 # SPDX-FileCopyrightText: © 2008-2022 Bart de Koning
4 # SPDX-FileCopyrightText: © 2008-2022 Richard Bailey
5 # SPDX-FileCopyrightText: © 2008-2022 Germar Reitze
6 # SPDX-FileCopyrightText: © 2017 Matthias Gerstner
7 # SPDX-FileCopyrightText: © 2024 Jürgen Altfeld
8 #
9 # SPDX-License-Identifier: GPL-2.0-or-later
10 #
11 # This file is part of the program "Back In Time" which is released under GNU
12 # General Public License v2 (GPLv2). See LICENSES directory or go to
13 # <https://spdx.org/licenses/GPL-2.0-or-later.html>.
14
15 # fixing gray window error
16 # https://launchpad.net/bugs/1493020
17 export QT_GRAPHICSSYSTEM="native"
18
19 CUR_PATH="$(dirname $(readlink -m $0))"
20 if [ -f "${CUR_PATH}/askpass.py" ]; then
21 APP_PATH=$CUR_PATH
22 else
23 APP_PATH=$(readlink -m "${CUR_PATH}/../share/backintime/common")
24 fi
25
26 /usr/bin/python3 -Es $APP_PATH/askpass.py "$@"