Hi Gunnar,

The software from $SILICON_VENDOR is installed using the Graphical
installer. Not long ago, the GUI install was the only option.

We run the actual build jobs via a Jenkins agent over SSH.

Here's a small stunt double of the build job
{code}
#!/bin/bash

set -ex

echo "XDG_SESSION_TYPE=$XDG_SESSION_TYPE"

# source environment from /etc/profile
. /etc/profile

echo "Continuing build with the environment set up"
{code}

The -e option is set according to our shell scripting recommendations, which 
then aborts when sourcing
/etc/profile.d/im-config_wayland.sh


I suggest the below as a replacement
{code}
# /etc/profile.d/im-config_wayland.sh
#
# This sets the IM variables on Wayland.

if [ ! "$XDG_SESSION_TYPE" = 'wayland' ]; then
    return
fi

# don't do anything if im-config was removed but not purged
if [ ! -r /usr/share/im-config/xinputrc.common ]; then
    return
fi

if [ -r /etc/X11/Xsession.d/70im-config_launch ]; then
    . /etc/X11/Xsession.d/70im-config_launch
fi
{code}

Assuming I didn't mess anything up, it should do the same thing - but
doesn't explode with the -e option set.

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