Community
Participate
Working Groups
At the "Launch" tab I can define a script that will be run before my application and a script that will run after the application is terminated. The expected behavior is that the scripts are executed in the working directory, however this is not the case. To reproduce the error just use a script that prints it's working directory after and before and saves the result in a temporary place, like for example: 'pwd > /tmp/before.txt' and 'pwd > /tmp/after.txt' Use the "Synchronize" tab to download the files, making sure that the plugin is set to not cleanup files after execution. The result is that the scripts are executed at the login directory and not at the working directory.
Created attachment 99763 [details] This patch solves the problem making sure that before each script is executed it 'cd' to the actual working directory.
Applied to 2.0 and HEAD.
Works for me.