You are right. I've found that the issue happens also because I export $d in ~/.profile .
The updated list of steps to reproduce the issue: - echo 'export d=my-env-var-data' >> ~/.profile - Restart X session - Open a X terminal - echo $d - Returns "GNOME" Note: The installed display manager is sddm. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to im-config in Ubuntu. https://bugs.launchpad.net/bugs/1877627 Title: /etc/default/im-config leaves temporary variables fixed in environment Status in im-config package in Ubuntu: Incomplete Bug description: Ubuntu 18.04 im-config 0.34-1ubuntu1.3 You can reproduce the issue following these steps: - Open a X terminal - echo $d - Returns "GNOME" The source is this line in /etc/default/im-config: for d in 'Unity' 'MATE' 'GNOME'; do the temporary variable d gets fixed in the environment variables. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1877627/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

