How to load ~/.Xresources when starting X?

38

If you aren't using a display manager to login, you need to add the following to your ~/.xinitrc file.

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

Most display managers will load ~/.Xresources automatically.

Share:
38

Related videos on Youtube

user12288003
Author by

user12288003

Updated on September 18, 2022

Comments

  • user12288003
    user12288003 over 1 year

    I want to build an mobile app using Vue-native but I can't seem to run and test the code in web browser or on android simulator.
    I am using Windows 10.

    I have been following the tutorials on https://www.youtube.com/watch?v=8e0XHPylhj0 and https://vue-native.io/docs/installation.html
    Before testing I have installed vue-native and expo-cli as well as cd into the folder I've created called "vuenative-test".

    Code

    npm install -g vue-native-cli
    npm install --global expo-cli
    vue-native init vuenative-test 
    cd vuenative-test
    npm start
    

    Testing in web browser

    First i run "npm start".

    After this I go to http://localhost:19002 and from there click "Run in web browser" and it opens a new tab http://localhost:19006/ but the page is just white.

    What do I need to do in order to be able to see my vue-native code so I can test it?

    Testing on android simulator
    When in my folder "vuenative-test" I run "npm run android". This will load the android emulator but I can't find the app on the simulator phone. I am guessing that the app should be called "vuenative-test" on the android emulator, is that correct?
    What do I need to do in order to see the app on the android emulator?

    If anyone have any tips on how I can test the code in web browser or on android emulator that would be very helpful.

    (If needed I can attach images if that makes more sense)

    Thanks

  • hhyttt
    hhyttt about 10 years
    i've added this line but it didn't worked! i've added exec awesome to xinitrc and it works so i can say xinitrc it being loaded
  • hhyttt
    hhyttt about 10 years
    thanks for your solution. i just added the line before executing awesome and it worked
  • meskarune
    meskarune about 10 years
    Awesome, I'm glad you got it working! :)