fix(calamares): detect COSMIC in displaymanager so greetd setup doesn't crash
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
_pkgname="calamares"
|
||||
pkgname="$_pkgname"
|
||||
pkgver=3.4.2
|
||||
pkgrel=10
|
||||
pkgrel=11
|
||||
pkgdesc="Distribution-independent installer framework"
|
||||
url="https://codeberg.org/Calamares/calamares"
|
||||
license=("GPL-3.0-or-later")
|
||||
@@ -53,6 +53,9 @@ build() {
|
||||
|
||||
local _pkgsrc_dir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
sed -i "/DesktopEnvironment('\/usr\/bin\/Hyprland', 'hyprland'),/a\ DesktopEnvironment('/usr/bin/start-cosmic', 'cosmic')," \
|
||||
"$_pkgsrc_dir/src/modules/displaymanager/main.py"
|
||||
|
||||
sed -i '/"ddlm --target " + de_command/a\
|
||||
elif os.path.exists(self.os_path("usr/bin/cosmic-greeter-start")):\
|
||||
self.config_data["default_session"]["command"] = "cosmic-greeter-start"' \
|
||||
|
||||
Reference in New Issue
Block a user