Don't require desktop file's path to exist

This commit is contained in:
TheAssassin
2018-11-09 21:26:23 +01:00
parent aaaca8b321
commit 574a883733
3 changed files with 8 additions and 4 deletions

View File

@@ -33,7 +33,8 @@ namespace linuxdeploy {
DesktopFile();
// construct from existing desktop file
// file must exist, otherwise std::runtime_error is thrown
// if the file exists, it will be read using DesktopFileReader
// if reading fails, exceptions will be thrown (see DesktopFileReader for more information)
explicit DesktopFile(const boost::filesystem::path& path);
// construct by reading an existing stream