diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-01-17 20:16:20 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-17 20:20:58 +0100 |
commit | 6fc61c67bf5d44161dfee1fac92b1bc4295b9b2d (patch) | |
tree | 03d399253778558becad14d5b3dc55852378ec31 /ubuntu/_base/core | |
parent | f229967711dc1d6640fcb74183c0d1047c9b5bf8 (diff) | |
download | tde-packaging-6fc61c67bf5d44161dfee1fac92b1bc4295b9b2d.tar.gz tde-packaging-6fc61c67bf5d44161dfee1fac92b1bc4295b9b2d.zip |
DEB tdebase: Fix the default DM service package name detection for TDM.
This resolves an unwanted change from TDM to another installed DM
during the tdm-trinity package upgrade.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5bc997626bedf1356339a2bbc515a9bda456afef)
Diffstat (limited to 'ubuntu/_base/core')
-rw-r--r-- | ubuntu/_base/core/tdebase/debian/tdm-trinity.config | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ubuntu/_base/core/tdebase/debian/tdm-trinity.config b/ubuntu/_base/core/tdebase/debian/tdm-trinity.config index 1d73249f7..26fc8427c 100644 --- a/ubuntu/_base/core/tdebase/debian/tdm-trinity.config +++ b/ubuntu/_base/core/tdebase/debian/tdm-trinity.config @@ -38,10 +38,11 @@ if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then CURRENT_DEFAULT=$(grep -v '^[[:space:]]*#' \ "$DEFAULT_DISPLAY_MANAGER_FILE" | head -n 1) - # both the binaries for tdm and tdm-kde4 share the same basename - # so we need to check if it's tdm-kde4 or another display manager - if [ "$CURRENT_DEFAULT" = "/usr/lib/kde4/bin/tdm" ]; then - CURRENT_DEFAULT=${THIS_PACKAGE}-kde4 + # the debconf configuration stores the package name, + # while the configuration files point to the binary name + # tdm-trinity package name must be used for the tdm binary + if [ "$CURRENT_DEFAULT" = "/opt/trinity/bin/tdm" ]; then + CURRENT_DEFAULT=${THIS_PACKAGE} else CURRENT_DEFAULT=$(basename $CURRENT_DEFAULT) fi |