New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow opening URLs without explicit command line switch #187
Comments
Looks like this was intentionally removed by 520fbf and upgrading.md tells the same story.
So I'm a bit hesitant to simply restore this. But maybe removing -u is a better option. WDYT @mathstuf ? |
Without specifying what should happen with |
Maybe generall accept one and only one URI?
`uzbl-core page1 page2` would open just page1 and generate a warning regarding the rest.
|
I guess we could recommmend people to configure BROWSER to xdg-open and then set uzbl as the default browser. Also just discovered we need some extra bits for the desktop file for that to work |
I don't quite get the issue with just ditching -u / --uri altogether (?) The expected behaviour of Requiring an additional flag causes known and future issues. @keis wrote:
Bad idea :) (xdg-open is not a BROWSER) My xdg-open replacement, for example, executes |
So it seems other browsers open all URLs given on the command line. |
@GSI ok, fair point I wouldn't worry too much about multiple uris as uzbl is still specifically a single page browser. Exiting with non-zero when we get more should be a reasonable option for core. And I would suggest |
Checked just now and |
So does droppign -u and going with only the first argument as url and error if there is more sound like a good aproach for core? |
I still think Keep |
Is there really any benefit to -u over a positional argument in core? It's not very complex to add some getopt magic to uzbl-browser as it would not have to know about any specifics of the arguments except -u. But there still code in two placing fiddling with the opts which I think we should avoid if possible |
I guess not. We should output that we're ignoring arguments to |
The issue:
To avoid this, simply running
uzbl-browser http://uzbl.org
(without-u/--uri
) should be possible.The text was updated successfully, but these errors were encountered: