Skip to content

Commit d13f067

Browse files
committed
Skip AppRun hook creation on Qt >= 6
1 parent ce5291e commit d13f067

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
@@ -302,10 +302,14 @@ int main(const int argc, const char *const *const argv) {
302302
return 1;
303303
}
304304

305-
ldLog() << std::endl << "-- Creating AppRun hook --" << std::endl;
306-
if (!createAppRunHook(appDir)) {
307-
ldLog() << LD_ERROR << "Failed to create AppRun hook in AppDir" << std::endl;
308-
return 1;
305+
if (qtMajorVersion >= 6) {
306+
ldLog() << std::endl << "-- Note: skipping AppRun hook creation on Qt " << qtMajorVersion << " --" << std::endl;
307+
} else {
308+
ldLog() << std::endl << "-- Creating AppRun hook --" << std::endl;
309+
if (!createAppRunHook(appDir)) {
310+
ldLog() << LD_ERROR << "Failed to create AppRun hook in AppDir" << std::endl;
311+
return 1;
312+
}
309313
}
310314

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

0 commit comments

Comments
 (0)