Skip to content

Commit 3d1fb64

Browse files
committed
Skip AppRun hook creation on Qt >= 6
1 parent b0cb921 commit 3d1fb64

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,14 @@ int main(const int argc, const char *const *const argv) {
308308
return 1;
309309
}
310310

311-
ldLog() << std::endl << "-- Creating AppRun hook --" << std::endl;
312-
if (!createAppRunHook(appDir)) {
313-
ldLog() << LD_ERROR << "Failed to create AppRun hook in AppDir" << std::endl;
314-
return 1;
311+
if (qtMajorVersion >= 6) {
312+
ldLog() << std::endl << "-- Note: skipping AppRun hook creation on Qt " << qtMajorVersion << " --" << std::endl;
313+
} else {
314+
ldLog() << std::endl << "-- Creating AppRun hook --" << std::endl;
315+
if (!createAppRunHook(appDir)) {
316+
ldLog() << LD_ERROR << "Failed to create AppRun hook in AppDir" << std::endl;
317+
return 1;
318+
}
315319
}
316320

317321
ldLog() << std::endl << "Done!" << std::endl;

0 commit comments

Comments
 (0)