Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
a1a34b8a
Commit
a1a34b8a
authored
Nov 29, 2013
by
Dann Luciano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added open support in OS X.
parent
d095e607
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
queries.c
queries.c
+7
-1
No files found.
queries.c
View file @
a1a34b8a
...
...
@@ -48,6 +48,12 @@
#define sha1 SHA1
#ifdef __APPLE__
#define OPEN_BIN "open %s"
#else
#define OPEN_BIN "xdg-open %s"
#endif
char
*
get_downloads_directory
(
void
);
int
verbosity
;
extern
int
offline_mode
;
...
...
@@ -1777,7 +1783,7 @@ void end_load (struct download *D) {
logprintf
(
"Done: %s
\n
"
,
D
->
name
);
}
else
if
(
D
->
next
==
2
)
{
static
char
buf
[
1000
];
sprintf
(
buf
,
"xdg-open %s"
,
D
->
name
);
sprintf
(
buf
,
OPEN_BIN
,
D
->
name
);
int
x
=
system
(
buf
);
if
(
x
<
0
)
{
logprintf
(
"Can not open image viewer: %m
\n
"
);
...
...
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