Blob Blame History Raw
diff --git a/greetd/src/session/worker.rs b/greetd/src/session/worker.rs
index 8b87ac8..00e44bb 100644
--- a/greetd/src/session/worker.rs
+++ b/greetd/src/session/worker.rs
@@ -211,7 +211,7 @@ fn worker(sock: &UnixDatagram) -> Result<(), Error> {
     let cusername = CString::new(username)?;
     let command = if source_profile {
         format!(
-            "[ -f /etc/profile ] && . /etc/profile; [ -f $HOME/.profile ] && . $HOME/.profile; exec {}",
+            "unset BASH_VERSION; [ -f /etc/profile ] && . /etc/profile; [ -f $HOME/.profile ] && . $HOME/.profile; exec {}",
             cmd.join(" ")
         )
     } else {