Skip to content

Commit

Permalink
fix gimp 2.10 win support
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 4, 2018
1 parent 5fd9b5b commit d7a00a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cyan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,11 @@ void Cyan::gimpPlugin()
gimpPath.append(QDir::homePath());
gimpPath.append(QDir::separator());
#ifndef Q_OS_MAC
gimpPath.append(".gimp-"+version);
if (gimpDir.exists(gimpPath)) {
hasDir = true;
gimpPath.append(QString(".gimp-%1").arg(version));
if (gimpDir.exists(gimpPath)) { hasDir = true; }
if (!hasDir) {
gimpPath = QString("%1/AppData/Roaming/GIMP/%2/").arg(QDir::homePath()).arg(version);
if (gimpDir.exists(gimpPath)) { hasDir = true; }
}
#else
gimpPath.append("Library/Application Support/GIMP/"+version);
Expand Down

0 comments on commit d7a00a5

Please sign in to comment.