Skip to content

Commit

Permalink
Merge pull request #1200 from contour-terminal/bugfix/1199
Browse files Browse the repository at this point in the history
Fix file link opening
  • Loading branch information
christianparpart authored Sep 19, 2023
2 parents 7d271cc + 1e290e3 commit b3ee571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<li>Adds config option `profile.*.frozen_dec_modes` to permanently enable/disable certain DEC modes.</li>
<li>Adds capital `A` and `I` keys to switch from normal mode back to insert mode, too.</li>
<li>Adds size indicator window on resize (#1203).</li>
<li>Fixes uri re-encoding of local files in `OSC 8` (#1199)</li>
</ul>
</description>
</release>
Expand Down
2 changes: 1 addition & 1 deletion src/contour/TerminalSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ void TerminalSession::followHyperlink(terminal::HyperlinkInfo const& hyperlink)
QProcess::execute(QString::fromStdString(_app.programPath()), args);
}
else if (isLocal)
QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromUtf8(string(hyperlink.path()).c_str())));
QDesktopServices::openUrl(QUrl(hyperlink.uri.c_str()));
else
QDesktopServices::openUrl(QString::fromUtf8(hyperlink.uri.c_str()));
}
Expand Down

0 comments on commit b3ee571

Please sign in to comment.