You are not logged in.

#1 2015-04-01 21:29:49

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

After an upgrade today, ~/.Xmodmap is not autoloaded when login

I can't remember what I have upgraded, but after the upgrade, ~/.Xmodmap became not being auto loaded when login. My second last upgrade was yesterday, so I guess something's changed between the packages today and yesterday. Running `xmodmap ~/.Xmodmap` manually still works.

Offline

#2 2015-04-01 21:36:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: After an upgrade today, ~/.Xmodmap is not autoloaded when login

What do you mean "auto loaded", it should never be auto loaded.  I assume you have that command in some part of starting X.  Please elaborate on how you start x and post the revelant files (xinit, xsession, autostart, etc).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-04-01 21:53:42

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: After an upgrade today, ~/.Xmodmap is not autoloaded when login

I start X with GDM, and I only have an `xprofile` in my home directory:

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

The Xmodmap wiki page says that:

With GDM, XDM, KDM or LightDM there is no need to source ~/.Xmodmap.

So I guess if I start with GDM, I should have Xmodmap autoloaded. I inspected this file /etc/gdm/Xsession, which contains the following lines:

usermodmap="$HOME/.Xmodmap"
    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi

So my Xmodmap is supposed to be loaded if log in with GDM. Do you have any ideas?

Offline

#4 2015-04-01 22:08:59

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: After an upgrade today, ~/.Xmodmap is not autoloaded when login

OK, I guess I know a bit about what's happening here now. My fcitx configuration also failed (in my ~/.xprofile). I have my home directory encrypted, before today Xsession is loaded after decryption, but decrypt seems happening after Xsession is executed today after upgrading, so that none of my X related configuration in home is loaded.

Last edited by xuhdev (2015-04-01 22:09:32)

Offline

#5 2015-04-01 22:43:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: After an upgrade today, ~/.Xmodmap is not autoloaded when login

I don't use gdm or encryption, but it seems you should adjust the appropriate gdm service file so that it requires and is after the encryption/mounting service.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-04-02 00:18:31

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: After an upgrade today, ~/.Xmodmap is not autoloaded when login

It seems not the issue I mentioned. After I downgrade yaml-cpp to 0.5.1, everything's back to normal.

Offline

Board footer

Powered by FluxBB