Hi ST experts,
I am working on a plugin for version control and everything works as expected in windows. Its a different story on linux (ubuntu 14.04), I see that if start sublime from terminal, my plugin works as expected, however when I launch Sublime from desktop shortcut, popen command does not return the expected command. What am I missing? What is difference b/w launching sublime from terminal vs launching from shortcut?
p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=global_folder, shell=True)
result, err = p.communicate()
I have tried command = ["p4", "info"]
and command = "p4 info"
, both don’t work when sublime has been launched from desktop shortcut. Both these work when I have started sublime from a terminal window.
Thanks for your time and I hope someone has seen this before and/or point me in the right direction.