Bug#1024073: lightdm on debian does not source ~/.profile
Package: lightdm
Version: 1.26.0-7
Severity: normal
X-Debbugs-Cc: nrbrtx@gmail.com
Dear Maintainer,
it seems that *lightdm* still does not source ~/.profile .
Steps to reproduce:
1. Create script in ~/bin and desktop-file for it
```
mkdir ~/bin
cat <<EOF > ~/bin/mew
#!/bin/bash
zenity --info --text "Mew!"
EOF
chmod +x ~/bin/mew
source ~/.profile
mew
cat <<EOF > ~/Desktop/mew.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Icon=/usr/share/icons/mate/32x32/apps/access.png
Icon[en_US]=/usr/share/icons/mate/32x32/apps/access.png
Name[en_US]=mew
Exec=mew
Terminal=false
Name=mew
EOF
sudo reboot
```
2. Double click on *mew* desktop file on Desktop
Expected results:
* zenity window is shown
Actual results:
* error is shown "There was an error launching the application."
Additional details:
1. I can't understand what makes you unique from Ubuntu. They source needed
files - see https://github.com/canonical/lightdm/blob/main/debian/lightdm-
session#L38 .
2. The same happens on Debian 10.
3. This problem prevents normal usage of Ubuntu Make on Debian - see
https://github.com/ubuntu/ubuntu-make/issues/678 .
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 11.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-18-amd64 (SMP w/1 CPU thread)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lightdm depends on:
ii adduser 3.118
ii dbus 1.12.20-2
ii debconf [debconf-2.0] 1.5.77
ii libaudit1 1:3.0-2
ii libc6 2.31-13+deb11u4
ii libgcrypt20 1.8.7-6
ii libglib2.0-0 2.66.8-1
ii libpam-systemd [logind] 247.3-7+deb11u1
ii libpam0g 1.4.0-9+deb11u1
ii libxcb1 1.14-3
ii libxdmcp6 1:1.1.2-3
ii lightdm-gtk-greeter [lightdm-greeter] 2.0.8-2
ii lsb-base 11.1.0
Versions of packages lightdm recommends:
ii xserver-xorg 1:7.7+22
Versions of packages lightdm suggests:
ii accountsservice 0.6.55-3
ii upower 0.99.11-2
pn xserver-xephyr <none>
-- debconf information:
shared/default-x-display-manager: lightdm
Reply to: