mu-msg-file: don't insist on absolute path
Since we make it absolute anyway (g_canonicalize_file); this avoid an annoying error when using mu view with a relative path.
This commit is contained in:
@ -83,11 +83,6 @@ init_file_metadata(MuMsgFile* self, const char* path, const gchar* mdir, GError*
|
||||
{
|
||||
struct stat statbuf;
|
||||
|
||||
if (!g_path_is_absolute(path)) {
|
||||
mu_util_g_set_error(err, MU_ERROR_FILE, "path '%s' is not absolute", path);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (access(path, R_OK) != 0) {
|
||||
mu_util_g_set_error(err,
|
||||
MU_ERROR_FILE,
|
||||
|
||||
Reference in New Issue
Block a user