diff options
author | Zach DeCook <zachdecook@librem.one> | 2020-11-21 16:30:34 -0500 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-23 06:59:41 +0200 |
commit | fc2fd3937881019dec6347a53bf100a28745c420 (patch) | |
tree | 80b90442fae90b4eb5f3f4cc8e44b7e40f19977d /src/app.c | |
parent | e07141292f6a756d0352f0fb5268bbb563367fce (diff) |
External Link Opening: Use xdg-open from $PATH
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1293,9 +1293,9 @@ void openInDefaultBrowser_App(const iString *url) { | |||
1293 | iProcess *proc = new_Process(); | 1293 | iProcess *proc = new_Process(); |
1294 | setArguments_Process(proc, | 1294 | setArguments_Process(proc, |
1295 | #if defined (iPlatformApple) | 1295 | #if defined (iPlatformApple) |
1296 | iClob(newStringsCStr_StringList("/usr/bin/open", cstr_String(url), NULL)) | 1296 | iClob(newStringsCStr_StringList("/usr/bin/env", "open", cstr_String(url), NULL)) |
1297 | #elif defined (iPlatformLinux) || defined (iPlatformOther) | 1297 | #elif defined (iPlatformLinux) || defined (iPlatformOther) |
1298 | iClob(newStringsCStr_StringList("/usr/bin/xdg-open", cstr_String(url), NULL)) | 1298 | iClob(newStringsCStr_StringList("/usr/bin/env", "xdg-open", cstr_String(url), NULL)) |
1299 | #elif defined (iPlatformMsys) | 1299 | #elif defined (iPlatformMsys) |
1300 | iClob(newStringsCStr_StringList( | 1300 | iClob(newStringsCStr_StringList( |
1301 | concatPath_CStr(cstr_String(execPath_App()), "../urlopen.bat"), | 1301 | concatPath_CStr(cstr_String(execPath_App()), "../urlopen.bat"), |
@@ -1341,7 +1341,7 @@ void revealPath_App(const iString *path) { | |||
1341 | } | 1341 | } |
1342 | iProcess *proc = new_Process(); | 1342 | iProcess *proc = new_Process(); |
1343 | setArguments_Process( | 1343 | setArguments_Process( |
1344 | proc, iClob(newStringsCStr_StringList("/usr/bin/xdg-open", cstr_Rangecc(target), NULL))); | 1344 | proc, iClob(newStringsCStr_StringList("/usr/bin/env", "xdg-open", cstr_Rangecc(target), NULL))); |
1345 | start_Process(proc); | 1345 | start_Process(proc); |
1346 | iRelease(proc); | 1346 | iRelease(proc); |
1347 | #else | 1347 | #else |