Commit b016ef1e authored by Marek Kašík's avatar Marek Kašík

Convert relative path to absolute path for evince-previewer

Add ability to open documents specified by relative path in
evince-previewer.
parent ddbf1edf
......@@ -86,8 +86,12 @@ ev_previewer_load_document (const gchar *filename,
{
EvJob *job;
gchar *uri;
GFile *file;
file = g_file_new_for_commandline_arg (filename);
uri = g_file_get_uri (file);
g_object_unref (file);
uri = g_filename_to_uri (filename, NULL, NULL);
job = ev_job_load_new (uri);
g_signal_connect (job, "finished",
G_CALLBACK (ev_previewer_load_job_finished),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment