Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f439f216
Commit
f439f216
authored
Jul 27, 2006
by
Stefan Siebert
Committed by
Alexandre Julliard
Jul 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebrowser: Pass any given argument that is not a mailto URL to the browser.
parent
2b8abca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
main.c
programs/winebrowser/main.c
+3
-6
No files found.
programs/winebrowser/main.c
View file @
f439f216
...
...
@@ -28,7 +28,7 @@
* taken from a registry key.
*
* The argument may be a regular Windows file name, a file URL, an
*
http(s)
URL or a mailto URL. In the first three cases the argument
* URL or a mailto URL. In the first three cases the argument
* will be fed to a web browser. In the last case the argument is fed
* to a mail client. A mailto URL is composed as follows:
*
...
...
@@ -209,12 +209,9 @@ int main(int argc, char *argv[])
}
}
if
(
!
strncasecmp
(
url
,
"http:"
,
5
)
||
!
strncasecmp
(
url
,
"https:"
,
6
))
return
open_http_url
(
url
);
if
(
!
strncasecmp
(
url
,
"mailto:"
,
7
))
return
open_mailto_url
(
url
);
fprintf
(
stderr
,
"winebrowser: cannot handle this type of URL: %s
\n
"
,
url
);
return
1
;
/* let the browser decide how to handle the given url */
return
open_http_url
(
url
)
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment