mirror of
https://github.com/lbonn/rofi
synced 2025-02-17 05:18:31 +00: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 );
|
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 );
|
char *retv = g_build_filenamev ( str );
|
||||||
g_strfreev ( str );
|
g_strfreev ( str );
|
||||||
|
|
|
@ -18,6 +18,7 @@ xdotool key Return
|
||||||
wait ${RPID}
|
wait ${RPID}
|
||||||
RETV=$?
|
RETV=$?
|
||||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
||||||
|
echo ${OUTPUT}
|
||||||
if [ "${OUTPUT}" != 'noot ' ]
|
if [ "${OUTPUT}" != 'noot ' ]
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue