esamattis / TextareaConnect

Edit textareas in Google Chrome using any external editor!
https://chrome.google.com/webstore/detail/ooddekcmdpjicehjkgobdopbkgepmahj
13 stars 3 forks source link

Running on startup #8

Open kaihendry opened 13 years ago

kaihendry commented 13 years ago

I managed to install the node script with the help npm. What a PITA... ideally I just want to use an Arch package. Pity a Chrome extension can't just invoke an external command!!!

I get running with the cmdline hendry@x201 ~$ ./node_modules/.bin/textareaserver --editor-cmd "uxterm -e vim" however I would like to make sure my system runs this at startup. Can someone offer a very simple /etc/rc.d script? Or present some other solution?

ph1l commented 13 years ago

An rc startup script is the wrong place to do that. You want it to startup under your Xwindow session so it will inherit the correct environment. Try adding the following to the beginning of your ~/.xsession file:

# Start TextareaServer Daemon
~/node_modules/.bin/textareaserver --editor-cmd "uxterm -e vim" &

Although, depending on what window manager you are using, there may be a better place to add those lines.

Cheers.