Also implement adding the path to the desktop entry
This commit is contained in:
parent
a0a3d9b75d
commit
cb9fe903ea
|
@ -682,6 +682,28 @@ static int _open_application(MimeHandler * handler, String const * filename)
|
||||||
program = p;
|
program = p;
|
||||||
p += len;
|
p += len;
|
||||||
break;
|
break;
|
||||||
|
case 'k':
|
||||||
|
if((name = handler->filename) == NULL)
|
||||||
|
{
|
||||||
|
/* ignore */
|
||||||
|
*(p++) = '"';
|
||||||
|
*(p++) = '"';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
*p = '\0';
|
||||||
|
q = p;
|
||||||
|
if((p = string_new_append(program, name, &q[2],
|
||||||
|
NULL)) == NULL)
|
||||||
|
{
|
||||||
|
string_delete(program);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
len = string_length(program)
|
||||||
|
- string_length(&q[2]);
|
||||||
|
string_delete(program);
|
||||||
|
program = p;
|
||||||
|
p += len;
|
||||||
|
break;
|
||||||
case '%':
|
case '%':
|
||||||
/* ignore */
|
/* ignore */
|
||||||
memmove(&p[1], &p[2], string_length(p[1]));
|
memmove(&p[1], &p[2], string_length(p[1]));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user