diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gputty | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gputty')
-rw-r--r-- | packages/gputty/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/gputty/gputty/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/gputty/gputty/conf.patch | 26 | ||||
-rw-r--r-- | packages/gputty/gputty/gputty | 4 |
4 files changed, 30 insertions, 0 deletions
diff --git a/packages/gputty/.mtn2git_empty b/packages/gputty/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/gputty/.mtn2git_empty diff --git a/packages/gputty/gputty/.mtn2git_empty b/packages/gputty/gputty/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/gputty/gputty/.mtn2git_empty diff --git a/packages/gputty/gputty/conf.patch b/packages/gputty/gputty/conf.patch index e69de29bb2..deb4548092 100644 --- a/packages/gputty/gputty/conf.patch +++ b/packages/gputty/gputty/conf.patch @@ -0,0 +1,26 @@ +# Added support to store the configuration in the user home directory +# Released under the original terms of the package +# Submitted ustream 12/03/04 + +--- gputty-0.9.7/src/gputty.c 2004-06-28 06:23:36.000000000 -0700 ++++ gputty-0.9.7.new/src/gputty.c 2004-07-12 13:32:41.632259216 -0700 +@@ -424,8 +424,18 @@ + (void*)gtk_entry_get_text(GTK_ENTRY(g->hn_eusername))); + if(g->config == NULL) + fprintf(stderr, "%s", "gputty: not saving configuration\n"); +- else if(config_save(g->config, ".gputty") != 0) ++ else { ++ char filename[64]; ++ ++ if (getenv("HOME")) ++ snprintf(filename, sizeof(filename) - 1, ++ "%s/.gputty\n", getenv("HOME")); ++ else ++ strncpy(filename, ".gputty", sizeof(filename) - 1); ++ ++ if(config_save(g->config, filename) != 0) + fprintf(stderr, "%s", "gputty: an error occured while saving configuration\n"); ++ } + gtk_main_quit(); + } + diff --git a/packages/gputty/gputty/gputty b/packages/gputty/gputty/gputty index e69de29bb2..4ba531ecd3 100644 --- a/packages/gputty/gputty/gputty +++ b/packages/gputty/gputty/gputty @@ -0,0 +1,4 @@ +ssh=ssh +xterm=x-terminal-emulator +hostname= +username= |