Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 calamares-settings-debian (4:12.0.10-2peppermint8) unstable; urgency=medium
 .
   * File name update
Author: Manuel rosa <manuelsilvarosa@gmail.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-05-26

--- calamares-settings-debian-12.0.10.orig/add-calamares-desktop-icon
+++ calamares-settings-debian-12.0.10/add-calamares-desktop-icon
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Creates an "Install Debian" icon on the live session tested with:
+# Creates an "Install peppermint" icon on the live session tested with:
 # Xfce, LXDE, LXqt, Gnome, KDE, Mate, Cinnamon
 
 # We query xdg-user-dir because the Desktop directory has different
@@ -10,26 +10,26 @@ DESKTOP=$(xdg-user-dir DESKTOP)
 # creation script.
 mkdir -p $DESKTOP
 
-# Among the Debian desktop environments, LXDE is the only one
+# Among the peppermint desktop environments, LXDE is the only one
 # that behaves completely different.
 if [ -f /usr/bin/lxsession ]; then
-    echo "[Desktop Entry]" > $DESKTOP/calamares-install-debian.desktop
-    echo "Type=Link" >> $DESKTOP/calamares-install-debian.desktop
-    echo "Name=Install Debian" >> $DESKTOP/calamares-install-debian.desktop
-    echo "Icon=install-debian" >> $DESKTOP/calamares-install-debian.desktop
-    echo "URL=/usr/share/applications/calamares-install-debian.desktop" \
-          >> $DESKTOP/calamares-install-debian.desktop
+    echo "[Desktop Entry]" > $DESKTOP/calamares-install-peppermint.desktop
+    echo "Type=Link" >> $DESKTOP/calamares-install-peppermint.desktop
+    echo "Name=Install peppermint" >> $DESKTOP/calamares-install-peppermint.desktop
+    echo "Icon=install-peppermint" >> $DESKTOP/calamares-install-peppermint.desktop
+    echo "URL=/usr/share/applications/calamares-install-peppermint.desktop" \
+          >> $DESKTOP/calamares-install-peppermint.desktop
 else
-    cp /usr/share/applications/calamares-install-debian.desktop $DESKTOP
+    cp /usr/share/applications/calamares-install-peppermint.desktop $DESKTOP
     # Xfce needs this executable otherwise it complains, everything
     # else doesn't seem to care either way.
-    chmod +x $DESKTOP/calamares-install-debian.desktop
+    chmod +x $DESKTOP/calamares-install-peppermint.desktop
 fi
 
 # Set desktop launcher as trusted under gnome/xfce (See: #1037299)
-    gio set --type=string ~/Desktop/calamares-install-debian.desktop \
+    gio set --type=string ~/Desktop/calamares-install-peppermint.desktop \
         metadata::trusted true
-    gio set --type=string ~/Desktop/calamares-install-debian.desktop \
+    gio set --type=string ~/Desktop/calamares-install-peppermint.desktop \
         metadata::xfce-exe-checksum \
-        "$(sha256sum ~/Desktop/calamares-install-debian.desktop | cut -f1 -d' ')"
-    touch ~/Desktop/calamares-install-debian.desktop
+        "$(sha256sum ~/Desktop/calamares-install-peppermint.desktop | cut -f1 -d' ')"
+    touch ~/Desktop/calamares-install-peppermint.desktop
--- /dev/null
+++ calamares-settings-debian-12.0.10/calamares-install-peppermint.desktop
@@ -0,0 +1,21 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Install Peppermint
+Name[bg]=Инсталиране на Peppermint
+Name[es]=Instale Peppermint
+Name[fr]= Installer Peppermint
+Name[hu]=Telepítse a Peppermint
+Name[it]=Installare Peppermint
+Name[ja]=インストール  Peppermint
+Name[pt]=Instalar Peppermint
+Name[pt_BR]=Instalar Peppermint
+Name[ru]=Установить Peppermint
+Exec=install-peppermint
+Icon=install-debian.png
+Terminal=false
+Categories=Settings
+Comment=Calamares — Installer for Peppermint Live
+Keywords=calamares;system;install;peppermint;installer
+StartupNotify=True
+StartupWMClass=calamares
--- /dev/null
+++ calamares-settings-debian-12.0.10/install-peppermint
@@ -0,0 +1,26 @@
+#!/bin/sh
+###
+# Wrapper for running calamares on Debian live media
+###
+
+# Stale file left behind by live-build that messes with partitioning
+sudo mv /etc/fstab /etc/fstab.orig.calamares
+
+# Allow Calamares to scale the window for hidpi displays
+# This is fixed in the Calamares 3.3.0 series, so we can remove this
+# once we switch to that
+# Upstream commit that will make this obsolete:
+#     https://github.com/calamares/calamares/commit/e9f011b686a0982fb7828e8ac02a8e0784d3b11f
+# Upstream bug:
+#     https://github.com/calamares/calamares/issues/1945
+# Debian bug:
+#     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992162
+export QT_AUTO_SCREEN_SCALE_FACTOR=1
+
+# Access control to run calamares as root for xwayland
+xhost +si:localuser:root
+pkexec calamares -d
+xhost -si:localuser:root
+
+# Restore stale fstab, for what it's worth
+sudo mv /etc/fstab.orig.calamares /etc/fstab
