Fixing path.

This commit is contained in:
Dave Davenport 2015-11-28 12:59:10 +01:00
parent bf60d9c01c
commit ca6b1a8178
2 changed files with 8 additions and 0 deletions

View file

@ -680,6 +680,13 @@ char *rofi_expand_path ( const char *input )
str[i] = g_strdup ( p->pw_dir );
}
}
else if ( i == 0 ) {
char * s = str[i];
if ( input[0] == G_DIR_SEPARATOR ) {
str[i] = g_strdup_printf ( "%s%s", G_DIR_SEPARATOR_S, s );
g_free ( s );
}
}
}
char *retv = g_build_filenamev ( str );
g_strfreev ( str );

View file

@ -18,6 +18,7 @@ xdotool key Return
wait ${RPID}
RETV=$?
OUTPUT=$(cat output.txt | tr '\n' ' ')
echo ${OUTPUT}
if [ "${OUTPUT}" != 'noot ' ]
then
exit 1