mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 01:09:54 +08:00
mimedb: Search for exact mime type match in search_ini.
This commit is contained in:
parent
cf0850edfd
commit
6a5d6471c5
4
mimedb.c
4
mimedb.c
@ -214,7 +214,7 @@ static char * search_ini( const char *filename, const char *match )
|
|||||||
buf[0]=0;
|
buf[0]=0;
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
else if( strncmp( buf, match,len )==0)
|
else if( strncmp( buf, match, len ) == 0 && buf[len] == '=' )
|
||||||
{
|
{
|
||||||
done=1;
|
done=1;
|
||||||
}
|
}
|
||||||
@ -721,7 +721,7 @@ static char *get_action( const char *mimetype )
|
|||||||
|
|
||||||
free( launcher_full );
|
free( launcher_full );
|
||||||
|
|
||||||
launcher_command_str = search_ini( launcher_filename, "Exec=" );
|
launcher_command_str = search_ini( launcher_filename, "Exec" );
|
||||||
|
|
||||||
if( !launcher_command_str )
|
if( !launcher_command_str )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user