search

Home  >  Q&A  >  body text

ubuntu startup执行xmodmap问题

测试了一下,发现startup applications里写

xmodmap /home/$USER/.Xmodmap

没有用,只有写成

/bin/bash -c "sleep 20; /usr/bin/xmodmap /home/$USER/.Xmodmap"

才能生效。请问是为什么?

PS:版本是14.04

天蓬老师天蓬老师2863 days ago386

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-22 08:58:02

    1. Delayed startup
      Because it is useless to execute xmodmap when X Window is not fully started. Therefore, under delayed startup, wait until X Window is fully started before executing.

    reply
    0
  • Cancelreply