[anjuta] Fix #577232 – run-program plugin: projects's working directory should be set to project root on st
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] Fix #577232 – run-program plugin: projects's working directory should be set to project root on st
- Date: Sun, 21 Jun 2009 13:27:51 -0400 (EDT)
commit e83fe750b96243658e363adc4f13c98ed7c6f0db
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Jun 21 19:11:53 2009 +0200
Fix #577232 â?? run-program plugin: projects's working directory should be set to project root on start
plugins/run-program/plugin.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plugins/run-program/plugin.c b/plugins/run-program/plugin.c
index 7af9229..fa36231 100644
--- a/plugins/run-program/plugin.c
+++ b/plugins/run-program/plugin.c
@@ -159,6 +159,19 @@ static void on_session_load (AnjutaShell *shell, AnjutaSessionPhase phase, Anjut
g_list_free (self->recent_dirs);
}
self->recent_dirs = anjuta_session_get_string_list (session, "Execution", "Working directories");
+ if (self->recent_dirs == NULL)
+ {
+ /* Use project directory by default */
+ gchar *project_root_uri;
+
+ anjuta_shell_get (ANJUTA_PLUGIN(self)->shell,
+ IANJUTA_PROJECT_MANAGER_PROJECT_ROOT_URI,
+ G_TYPE_STRING,
+ &project_root_uri,
+ NULL);
+
+ self->recent_dirs = g_list_append (NULL, project_root_uri);
+ }
g_strfreev (self->environment_vars);
self->environment_vars = anjuta_session_get_strv (session, "Execution", "Environment variables");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]