Skip to content

Commit e7cb179

Browse files
committed
Fix bug causing crash
Unlike boost::filesystem, std::filesystem doesn't allow appending a slash to make sure a path ends in a slash. You must append an empty string.
1 parent 19fae64 commit e7cb179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deployment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using namespace linuxdeploy::core::log;
2525
inline bool deployIntegrationPlugins(appdir::AppDir& appDir, const fs::path& qtPluginsPath, const std::initializer_list<fs::path>& subDirs) {
2626
for (const fs::path& subDir : subDirs) {
2727
// make sure the path ends with a / so that liblinuxdeploy recognize the destination as a directory
28-
auto dir = qtPluginsPath / subDir / "/";
28+
auto dir = qtPluginsPath / subDir / "";
2929

3030
if (!fs::is_directory(dir)) {
3131
ldLog() << "Directory" << dir << "doesn't exist, skipping deployment" << std::endl;

0 commit comments

Comments
 (0)