mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fixing path.
This commit is contained in:
parent
bf60d9c01c
commit
ca6b1a8178
2 changed files with 8 additions and 0 deletions
|
@ -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 );
|
||||
|
|
|
@ -18,6 +18,7 @@ xdotool key Return
|
|||
wait ${RPID}
|
||||
RETV=$?
|
||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
||||
echo ${OUTPUT}
|
||||
if [ "${OUTPUT}" != 'noot ' ]
|
||||
then
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue