mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
bcbb55dd1e
commit
79d1d7089a
19 changed files with 129 additions and 276 deletions
|
|
@ -184,7 +184,7 @@ static void cmd_run(const char *data)
|
|||
g_strdup(data) : g_strdup_printf("%s.pl", data);
|
||||
|
||||
/* check from ~/.irssi/scripts/ */
|
||||
fname = g_strdup_printf("%s/.irssi/scripts/%s", g_get_home_dir(), name);
|
||||
fname = g_strdup_printf("%s/scripts/%s", get_irssi_dir(), name);
|
||||
if (stat(fname, &statbuf) != 0) {
|
||||
/* check from SCRIPTDIR */
|
||||
g_free(fname),
|
||||
|
|
@ -368,7 +368,7 @@ static void irssi_perl_autorun(void)
|
|||
struct stat statbuf;
|
||||
char *path, *fname;
|
||||
|
||||
path = g_strdup_printf("%s/.irssi/scripts/autorun", g_get_home_dir());
|
||||
path = g_strdup_printf("%s/scripts/autorun", get_irssi_dir());
|
||||
dirp = opendir(path);
|
||||
if (dirp == NULL) {
|
||||
g_free(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue