Thanks for explaining.

This was news to me, but I can confirm that those test() commands are
problematic if you source with the -e option set. Usually /etc/profile
is sourced by some display manager without the -e option, which may
explain that nobody has reported this previously.

It should be fixed, and I have pushed this commit:

https://salsa.debian.org/input-method-team/im-config/-/commit/776845bd

Note that the change will be effective only in Ubuntu 22.04.

In the meantime, and if you want to use the -e option, the easiest way
is probably to uninstall im-config:

sudo apt purge im-config

(I assume you don't need it for the described purpose.)

** Changed in: im-config (Ubuntu)
   Importance: Undecided => Low

** Changed in: im-config (Ubuntu)
       Status: Incomplete => In Progress

** Changed in: im-config (Ubuntu)
     Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj)

-- 
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/1947670

Title:
  /etc/profile.d/im-config_wayland.sh prevents sourcing /etc/profile

Status in im-config package in Ubuntu:
  In Progress

Bug description:
  We upgraded a build server from Ubuntu 18.04 to 20.04.

  The build server had some scripts in /etc/profile.d/ that set up the
  required build environment.

  The builds would source `. /etc/profile` in the beginning.

  After the upgrade, the script /etc/profile.d/im-config_wayland.sh
  line
  ```
  test "$XDG_SESSION_TYPE" = 'wayland' || return
  ```

  evaluates with `test tty = wayland` returning the build script early.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1947670/+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

Reply via email to