Created attachment 852825 [details]
The script I use to lauch thunderbird.
Description of problem:
If I run a program form a batch script and save the session(by logging out), when I log in a again, the program is run but not the script. I've attached a script I wrote which I use to run thunderbird. The problem being in this case is that "LANG=en_US" is not set when the session is restored.
Version-Release number of selected component (if applicable):
Don't know the version number.
Steps to Reproduce:
1.Write a script or use mine.
2.Run the script
3.Log out and save the session
4.Log in and the program will run but without the script.
The program launched from the script will run without the rest of the script.
The whole script should run.
This is medium priority but it could be more urgent, it depends, I can't think of any cases where this is critical.
There's no way for Xfce to know what commands you ran before some running process. When it saves a session it asks applications to 'save themselves' which usually involves any command line arguments and geometry if they support that.
Anyhow, a possible work around for you: go to preferences->sessions and startup
and the application autostart tab. Click add. Enter the information for calling your script, save.
The downside to this is that thunderbird could also be saved in your normal session.
I guess this is not a bug then. I could write a script that kills any Thunderbirds(that sounds violent) and runs my script at start-up. This would work 99% of the time, since I normally want to start thunderbird when I login.