Ah, you probably need "su -l" to read /etc/profile.d?
> We need to go through sudo always to get the proper environment)
Not always, that won't work if you are already the "phablet" user. So the "if" condition is right IMHO, you might just need su -l, or sudo to read profile.
Ah, you probably need "su -l" to read /etc/profile.d?
> We need to go through sudo always to get the proper environment)
Not always, that won't work if you are already the "phablet" user. So the "if" condition is right IMHO, you might just need su -l, or sudo to read profile.