Skip to content

Commit 88695de

Browse files
committed
Fix desktop file filename handling
1 parent 0f19458 commit 88695de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ int main(int argc, char** argv) {
261261
ldLog() << LD_WARNING << "Could not find desktop file in AppDir, cannot create links for AppRun, desktop file and icon in AppDir root" << std::endl;
262262
} else {
263263
if (!desktopFilePaths.Get().empty()) {
264-
auto firstDeployedDesktopFileName = bf::basename(desktopFilePaths.Get().front());
264+
auto firstDeployedDesktopFileName = bf::path(desktopFilePaths.Get().front()).filename().string();
265265

266266
auto desktopFileMatchingName = std::find_if(
267267
deployedDesktopFiles.begin(),

0 commit comments

Comments
 (0)