Skip to content
/ Pe Public
forked from HaikuArchives/Pe

Commit

Permalink
Fix opening of help docs files with Web+ (or other default browser)
Browse files Browse the repository at this point in the history
It was opening an empty Web+ due to it not handling the Net+ way
of doing things.
  • Loading branch information
OscarL authored and waddlesplash committed Dec 23, 2022
1 parent d51ea0e commit 2f4db2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,15 +1025,15 @@ void PApp::DisplayInBrowser(const entry_ref& doc)
{
try
{
BMessage msg(B_NETPOSITIVE_OPEN_URL);
BMessage msg(B_REFS_RECEIVED);

BPath path;
FailOSErr(BEntry(&doc).GetPath(&path));

string url = "file://";
url += path.Path();

msg.AddString("be:url", url.c_str());
msg.AddString("url", url.c_str());

char sig[B_MIME_TYPE_LENGTH];
BMimeType("text/html").GetPreferredApp(sig);
Expand Down

0 comments on commit 2f4db2f

Please sign in to comment.