History log of /haiku/src/bin/open.cpp
Revision Date Author Comments
# ebf52536 24-Mar-2023 Jessica Hamilton <jessica.l.hamilton@gmail.com>

open: fix typo from commit cleanup.

Change-Id: I3684756dcaad228d0bbd549e51adf77c757ec5ae


# da78f6bf 24-Mar-2023 Jessica Hamilton <jessica.l.hamilton@gmail.com>

open: B_ALREADY_RUNNING is valid for BUrl::OpenWithPreferredApplication().

Caused `open` to display an error with non-zero exit code when the
target application was already running and is single launch. In fact,
the error check at the end explicitly tests for B_ALREADY_RUNNING
along with B_OK.

Change-Id: Ic38c961bcdd8350b97b0d75ec010d25198afd561


# d52d36aa 01-Jan-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

open: don't print "invalid argument" when opening an URL.

Reset the error code.

Change-Id: I5b58c3082f5758d4cbca8c9706048e3414f939c9
Reviewed-on: https://review.haiku-os.org/807
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# a5330a8e 02-Jul-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove private support kit BUrl

Use the public BUrl from the network kit instead.


# 78d6fb3c 25-Jun-2014 John Scipione <jscipione@gmail.com>

open: get kTrackerSignature variable from tracker_private.h

Update copyright.


# ade16970 25-Jun-2014 John Scipione <jscipione@gmail.com>

open: style fixes


# b8092f18 25-Oct-2009 Jérôme Duval <korli@users.berlios.de>

the column argument wasn't taken into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33759 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e56cb275 13-May-2009 Jonas Sundström <jonas@kirilla.com>

Launch URLs via BUrl class. Rearranged header files according to guidelines.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30759 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb2f3ef9 01-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

As pointed out by Ingo, Mime.h is also a Haiku header and includes MimeType.h
for convenience.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27829 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78068f1f 01-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

* MimeType.h is not a BeOS header.
* Honor 80 char/line limit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27822 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5e76d2b 14-Feb-2008 François Revol <revol@free.fr>

Fix Haiku build, sorry ;)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23962 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 608aae69 14-Feb-2008 François Revol <revol@free.fr>

* make sure an url mime type is registered before using it.
* lines and cols are 1-based.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6261c369 18-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Fixed all those style issue mmu_man introduced over the years - thanks, man!
* Some possible errors weren't propagated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d03aaee 18-Jan-2007 François Revol <revol@free.fr>

When an app sig has been given, use it instead of the mime type to open docs.
This way 'open application/x-vnd.Be-NPOS foo.html' would work as expected,
instead of opening NetPos and open the file in the default browser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19853 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 548cead6 22-May-2006 François Revol <revol@free.fr>

- Handle args in the form /pathto/file[:line[:column]][:] so you can double-click
on a gcc error in the terminal, type open and right-click to edit at the buggy line.
Discard last : form gcc errors to avoid having to type backspace.
Works with Pe for the line at least, BeIDE doesn't seem to handle it though the
documentations says it should. Others apps welcome to handle the be:line and be:column
int32s on B_REFS_RECEIVED :)
- Updated copyright.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17546 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edeb640a 09-Nov-2005 François Revol <revol@free.fr>

discart "File not found" errors for app sigs; make sure the shell gets any error


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c45 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# a5330a8e41fab3b82f43d3e0d454f7abfa7b9174 02-Jul-2014 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove private support kit BUrl

Use the public BUrl from the network kit instead.


# 78d6fb3c8e22416c6c05cbf63aebb9a84a5d3a83 25-Jun-2014 John Scipione <jscipione@gmail.com>

open: get kTrackerSignature variable from tracker_private.h

Update copyright.


# ade169709bb93051e27d13e0accf14d1f00a8b40 25-Jun-2014 John Scipione <jscipione@gmail.com>

open: style fixes


# b8092f18e1fdba3497cf1479409b5ee0f585bfe4 25-Oct-2009 Jérôme Duval <korli@users.berlios.de>

the column argument wasn't taken into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33759 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e56cb275122cdeae11d90a3b21b445a8ccdd369c 13-May-2009 Jonas Sundström <jonas@kirilla.com>

Launch URLs via BUrl class. Rearranged header files according to guidelines.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30759 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb2f3ef96cd89ff4ebcbb6fc16744d43881144b5 01-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

As pointed out by Ingo, Mime.h is also a Haiku header and includes MimeType.h
for convenience.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27829 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78068f1f7663667011fa67c93ad89035010c93ca 01-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

* MimeType.h is not a BeOS header.
* Honor 80 char/line limit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27822 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5e76d2b5b4965d0b2262781402e281ab46792fa 14-Feb-2008 François Revol <revol@free.fr>

Fix Haiku build, sorry ;)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23962 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 608aae69a1b1c9e5dd7d59e65e38088e615281df 14-Feb-2008 François Revol <revol@free.fr>

* make sure an url mime type is registered before using it.
* lines and cols are 1-based.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23959 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6261c369af98de4c502a7b1484dc08f328829fce 18-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Fixed all those style issue mmu_man introduced over the years - thanks, man!
* Some possible errors weren't propagated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19854 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d03aaeea71aac9f3c4b2e4f879a0a5e572d9ca2 18-Jan-2007 François Revol <revol@free.fr>

When an app sig has been given, use it instead of the mime type to open docs.
This way 'open application/x-vnd.Be-NPOS foo.html' would work as expected,
instead of opening NetPos and open the file in the default browser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19853 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 548cead6a1473d5cb01964bf7df5f45f07e78c1b 22-May-2006 François Revol <revol@free.fr>

- Handle args in the form /pathto/file[:line[:column]][:] so you can double-click
on a gcc error in the terminal, type open and right-click to edit at the buggy line.
Discard last : form gcc errors to avoid having to type backspace.
Works with Pe for the line at least, BeIDE doesn't seem to handle it though the
documentations says it should. Others apps welcome to handle the be:line and be:column
int32s on B_REFS_RECEIVED :)
- Updated copyright.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17546 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edeb640ab00e744ad718d9e6f0d588b4f7af3b56 09-Nov-2005 François Revol <revol@free.fr>

discart "File not found" errors for app sigs; make sure the shell gets any error


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c451a91f427aec94b944b75876b611103e7 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96