Skip to content

Commit 459c5aa

Browse files
committed
Fix use of DesktopFile class
1 parent c6a517c commit 459c5aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ int main(int argc, char** argv) {
244244
ldLog() << "Creating new desktop file:" << desktopFilePath << std::endl;
245245
}
246246

247-
desktopfile::DesktopFile desktopFile(desktopFilePath);
247+
desktopfile::DesktopFile desktopFile;
248248
if (!desktopFile.addDefaultKeys(executableName)) {
249249
ldLog() << LD_WARNING << "Tried to overwrite existing entries in desktop file:" << desktopFilePath << std::endl;
250250
}
251251

252-
if (!desktopFile.save()) {
252+
if (!desktopFile.save(desktopFilePath)) {
253253
ldLog() << LD_ERROR << "Failed to save desktop file:" << desktopFilePath << std::endl;
254254
return 1;
255255
}

0 commit comments

Comments
 (0)