|Claudio Luck 158b714450||1 year ago|
|.Setup||2 years ago|
|contrib||2 years ago|
|docs/screenshots||2 years ago|
|locale||1 year ago|
|parts||1 year ago|
|plat||1 year ago|
|src||1 year ago|
|webstart||2 years ago|
|.drone.yml||1 year ago|
|.gitignore||2 years ago|
|.gitmodules||2 years ago|
|BUILDING.txt||2 years ago|
|GNUmakefile||1 year ago|
|README.md||2 years ago|
|pEp_Thunderbird_Setup.desktop||1 year ago|
This is a component of the pEp Installer for Linux (it does not consistute a useable installer on it's own). This is the program to launch from a *.desktop file, which in turn will offer user choices, and then run backend scripts with proper privileges.
It also has the facility to prompt the user for an administrative password shall the backend script prompt accordingly on its stdout (pseudo-terminal) or stderr.
The uninstall button is only exposed if launched with the option
git clone https://gitea.pep.foundation/claudio/pEpLinuxSetupForThunderbird.git git submodule update --init make - or - make wx_config=/path/to/custom/wx-config
./tb_setup -h ./tb_setup -U /path/to/pEp_Thunderbird_Setup.desktop
The ./tb_binary execution is meant to be wrapped by a *.desktop file carrying specific parameters for the installation. Two ways of launching tb_setup exist, (a) by means of the Exec= setting, and (b) by means of a shell "shebang" while the .desktop files executable bit is also set. In the latter case, tb_setup relies on the shell passing the .desktop file as the script to be executed as an argument to the running interpreter, which in this case is tb_setup. To achieve symmetry between the two modes of launching, the .desktop file shall be structured as follows:
#!/usr/bin/env ./tb_setup # # [ Text that explains to the user on how to start # this as a script from the console. ] # [Desktop Entry] Exec=sh -c './tb_setup "%k"'
Whenever tb_setup is launched this way, it will parse the .desktop file and extract installation parameters. It will then set defaults and launch install scripts according to the parameters.
[Desktop Entry] X-pEp-Exec= X-pEp-Import-Exec= X-pEp-MDA-Version= X-pEp-MDA-Platform= X-pEp-MDA-OS= X-pEp-MDA-Variant= X-pEp-Prefer-User-Install=yes|1|no|0
The options and values are case sensitive.
The X-pEp-Exec is a file path to the script performing the adapter installation. It is called with the command line arguments and with appropriate privileges (root or user) as described below. The X-pEp-Import-Exec is called after the adapter installation, and called with the command line argumentsas described below, while it is always called as the current user. The values of X-pEp-MDA-Version, X-pEp-MDA-Platform, X-pEp-MDA-OS and X-pEp-MDA-Variant are passed through to the install scripts.
If not set explicitely, X-pEp-MDA-Variant defaults to
tb for system installs,
tbmini for user installs.
mkdir -p tmpbin ln -sf /bin/su tmpbin/su PATH=$PWD/tmpbin ./tb_setup -U