diff options
author | Paweł Forysiuk tuxator@o2.pl <> | 2016-01-10 14:08:08 +0100 |
---|---|---|
committer | Paweł Forysiuk tuxator@o2.pl <> | 2016-01-10 14:08:08 +0100 |
commit | c94c5a3f2b910daa1d24ec6f1c3cf134b9319103 (patch) | |
tree | 2b296501ef5605bb5863311dae96fec3bec3a9cb /extensions | |
parent | 2206a93127eaf1fead63894a5710e9884e14f2e8 (diff) | |
download | midori-c94c5a3f2b910daa1d24ec6f1c3cf134b9319103.tar.gz |
Add helper function for checking if file exists
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/apps.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/apps.vala b/extensions/apps.vala index 8026a58e..49ecb44e 100644 --- a/extensions/apps.vala +++ b/extensions/apps.vala @@ -267,7 +267,7 @@ namespace Apps { string filename = Midori.Download.clean_filename (launcher.name); #if HAVE_WIN32 string lnk_filename = Midori.Sokoke.get_win32_desktop_lnk_path_for_filename (filename); - if (Posix.access (lnk_filename, Posix.F_OK) == 0) { + if (Midori.Paths.check_file_exists (lnk_filename)) { var lnk_file = File.new_for_path (lnk_filename); lnk_file.trash (); } |