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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947670

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1947670/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to