diff options
author | 2009-11-08 21:06:45 +0100 | |
---|---|---|
committer | 2009-11-08 21:06:45 +0100 | |
commit | e386248fcc7906d150cb476024f2c3d8ae760a38 (patch) | |
tree | 9af04b8611aede87ad839709bb36e6866950578b /main.c | |
parent | a28416472f90894fb73aafc97a576bf3f7d8a011 (diff) |
changed .desktop file to use filenames instead of URIs
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -240,17 +240,19 @@ exec_command_line (const char *cmdline, int len, int filter) { } while (parg < pend) { char resolved[PATH_MAX]; - if (!realpath (parg, resolved)) { - fprintf (stderr, "error: cannot expand filename %s, file will not play\n", parg); + const char *pname; + if (realpath (parg, resolved)) { + pname = resolved; } else { - if (pl_add_file (resolved, NULL, NULL) >= 0) { - if (queue) { - exitcode = 3; - } - else { - exitcode = 2; - } + pname = parg; + } + if (pl_add_file (pname, NULL, NULL) >= 0) { + if (queue) { + exitcode = 3; + } + else { + exitcode = 2; } } parg += strlen (parg); |