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:
Dirk-Jan C. Binnema
2021-11-23 21:09:39 +02:00
parent 9d4326e3ce
commit abd0abf5c8

View File

@ -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,