Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 18, 2024
1 parent 87daf4f commit 96791f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,9 @@ int main(int argc, char *argv[])
#ifdef Q_OS_LINUX
if (AppSupport::isAppPortable()) {
if (!AppSupport::hasXDGDesktopIntegration()) {
QString appPath = AppSupport::getAppPath();
QString appPath("friction");
const QString appimage = AppSupport::getAppImagePath();
if (!appimage.isEmpty()) { appPath = appimage; }
else { appPath.append("/friction"); }
if (!appimage.isEmpty()) { appPath = appimage.split("/").takeLast(); }
const auto ask = QMessageBox::question(nullptr,
QObject::tr("Setup Desktop Integration"),
QObject::tr("Would you like to setup desktop integration?"
Expand Down
1 change: 0 additions & 1 deletion src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ const QString AppSupport::getAppConfigPath()
if (!appimage.isEmpty() && QFileInfo(appimage).isWritable()) { path = QString("%1.config").arg(appimage); }
#endif
}
qWarning() << "Friction configuration path" << path;
QDir dir(path);
if (!dir.exists()) { dir.mkpath(path); }
return path;
Expand Down

0 comments on commit 96791f9

Please sign in to comment.