Re: [qutebrowser] Qutebrowser won't run...

2019-12-18 Thread Ryan Roden-Corrent
Hi David,

Did you add these in config.py or using config commands from the browser?

Can you tell us what commands you ran and/or show us your config.py (the lines 
you added, at least)?

-Ryan

On December 18, 2019 11:50:34 AM EST, Jack via qutebrowser 
 wrote:
>I have been using Qutebrowser for several years... Awesome!
>
>I was adding some keybindings and then executed a restart.  After that
>it wouldn't run.
>Here is what I have done:
>1 - Looked at the lines in the files below.
>2 - reinstalled Qutebrowser
>3 - reinstalled python3
>
>I am still getting this same output.
>
>Any advice would be greatly appreciated.
>
>Thank you,
>
>David
>
>Output when I try to run Qutebrowser:
>
>qutebrowser
>11:45:28 WARNING: /usr/lib/python3/dist-packages/apport/report.py:13:
>DeprecationWarning: the imp module is deprecated in favour of
>importlib; see the module's documentation for alternative uses
>  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
>
>Traceback (most recent call last):
>  File "/usr/bin/qutebrowser", line 11, in 
> load_entry_point('qutebrowser==1.1.1', 'gui_scripts', 'qutebrowser')()
>File "/usr/lib/python3/dist-packages/qutebrowser/qutebrowser.py", line
>188, in main
>return app.run(args)
>File "/usr/lib/python3/dist-packages/qutebrowser/app.py", line 100, in
>run
>configinit.early_init(args)
>File "/usr/lib/python3/dist-packages/qutebrowser/config/configinit.py",
>line 59, in early_init
>configfiles.read_config_py(config_file)
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configfiles.py",
>line 426, in read_config_py
>api.finalize()
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configfiles.py",
>line 240, in finalize
>self._config.update_mutables()
>File "/usr/lib/python3/dist-packages/qutebrowser/config/config.py",
>line 391, in update_mutables
>self.set_obj(name, new_value, save_yaml=save_yaml)
>File "/usr/lib/python3/dist-packages/qutebrowser/config/config.py",
>line 335, in set_obj
>self._set_value(self.get_opt(name), value)
>File "/usr/lib/python3/dist-packages/qutebrowser/config/config.py",
>line 269, in _set_value
>opt.typ.to_py(value)  # for validation
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 1223, in to_py
>for key, val in value.items()}
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 1223, in 
>for key, val in value.items()}
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 1223, in to_py
>for key, val in value.items()}
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 1223, in 
>for key, val in value.items()}
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 1651, in to_py
>self._basic_py_validation(value, str)
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 169, in _basic_py_validation
>self._basic_str_validation(value)
>File
>"/usr/lib/python3/dist-packages/qutebrowser/config/configtypes.py",
>line 182, in _basic_str_validation
>raise configexc.ValidationError(value, "may not be empty!")
>qutebrowser.config.configexc.ValidationError: Invalid value '' - may
>not be empty!
>
>Thanks,
>
>David

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [qutebrowser] Log in to Google Account using qutebrowser

2019-12-04 Thread Ryan Roden-Corrent
At the risk of derailing this, you might want to search "nothing to hide 
fallacy" on the search engine of your choice (maybe duckduckgo instead of 
google?).

https://www.schneier.com/blog/archives/2006/05/the_value_of_pr.html and 
https://spreadprivacy.com/three-reasons-why-the-nothing-to-hide-argument-is-flawed/
 are some good ones.

There are alternatives to Google. https://www.passwordstore.org/ is a nice 
password manager that can sync between multiple devices including your phone. 
Qutebrowser bookmarks/quickmarks are simple files you can sync between devices 
using any file syncing service (ideally with encryption - I'm using keybase for 
this right now). I'm sure if you ask around this community you can find many 
other options.

If you find that Google seems to be fighting your desire to use their service 
in the way you want, you can keep fighting that battle, or look for friendlier 
alternatives.

Best of luck, whichever route you choose :)

-Ryan

On December 4, 2019 11:22:14 AM EST, Denis Khizhniak <4denis...@gmail.com> 
wrote:
>Thank you, Florian, a really comprehensive answer.
>
>I am not really bothered about my security as I have nothing to hind. I
>like the way Google lets me save and substitute my credentials for
>plenty
>of web resources and across multiple devices. Otherwise, it would not
>be a
>problem for me with accessing my Google Account on qutebrowser.
>I mean Google makes my life easier sometimes and would like to retain
>his
>help. At the same time, I like the simplicity and the vim-like nature
>of
>qutebrowser.
>
>Anyway, the information that you've shared is quite interesting and
>helpful. Thank you.
>
>
>ср, 4 дек. 2019 г. в 13:28, Florian Bruhin :
>
>> On Wed, Dec 04, 2019 at 12:39:44PM +0100, Denis Khizhniak wrote:
>> > So, I have no idea how Google checks the actual browser and whether
>it's
>> > possible to fool him.
>>
>> Neither do I. Chances are that as soon as someone finds a solution,
>Google
>> will
>> just adjust whatever checking they do to break it again.
>>
>> There are various other projects and browsers (including e.g. Brave
>or
>> Steam)
>> affected as well. Some examples:
>>
>> https://support.google.com/accounts/thread/21838601
>> https://support.google.com/accounts/thread/21634818
>>
>>
>https://github.com/search?q=%22You+are+trying+to+sign+in+from+a+browser+or+app+that+doesn%27t+allow+us+to+keep+your+account+secure%22=Issues
>>
>>
>https://www.reddit.com/r/brave_browser/comments/cyrlt0/you_are_trying_to_sign_in_from_a_browser_or_app/
>>
>https://www.reddit.com/r/Steam/comments/e3kb4w/steam_web_browser_problems/
>>
>> There are some people who claim to have a solution, but don't want to
>talk
>> about it publicly - precisely because it'll just end up in Google
>blocking
>> that
>> as well.
>>
>> I wouldn't be surprised if Google just blocks pretty much everything
>other
>> than
>> Chrome and maybe Firefox. It's ridiculous, but it's yet another sign
>> showing
>> that maybe it isn't a good thing to make yourself dependent on Google
>-
>> you're
>> absolutely at their mercy, and they don't exactly have a good track
>record.
>>
>> I've once tried helping someone who only got an internal server error
>when
>> trying to open an important attachment of an older mail in GMail. We
>> contacted
>> Google Support, and as you'd predict, nothing happened.
>>
>> Given that Google really doesn't care about its users, your only
>option is
>> either switching browsers, or moving away from Google. I did the
>latter
>> years
>> ago[*]. Seeing what's going on here, this absolutely was the right
>> decision,
>> but I'm aware this isn't something everyone can realistically do...
>>
>> Florian
>>
>> [*] At least for stuff like Calendar and Mail. I still use Youtube
>(mostly
>> via
>> mpv/youtube-dl), Google Play and sometimes Maps (mostly switched to
>> Openstreetmap/OSMand).
>>
>> --
>> m...@the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org
>>https://bruhin.software/ |
>> https://github.com/sponsors/The-Compiler/
>>GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>>  I love long mails! | https://email.is-not-s.ms/
>>
>
>
>-- 
>Best regards,
>Denis Khizhniak

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [qutebrowser] How to add a bookmark with tags?

2018-09-15 Thread Ryan Roden-Corrent
Hi mgcyun,

Currently there is no concept of "tags", however you can use quickmarks,
which tie a url to a 'key'.

I have a pull request out that merges bookmarks/quickmarks into a single
concept that supports a featureful concept of tagging (looks like I need
to merge master again):

https://github.com/qutebrowser/qutebrowser/pull/3855

You can find the discussion on how it should work here:

https://github.com/qutebrowser/qutebrowser/issues/882

-Ryan

On Fri 09/14/18 08:36PM, mgcy...@gmail.com wrote:
> 
> I want to filter bookmarks with tags. How to add a bookmark with tags?


signature.asc
Description: PGP signature


Re: [qutebrowser] Using Keepass

2018-06-30 Thread Ryan Roden-Corrent
Hi Marco,

I'm not a keepass user, but someone contributed a keepass userscript:

https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/qute-keepass

There are usage instructions at the top of the file.
Note the warning in the usage instructions: plaintext passwords will be
viewable in the qutebrowser log. This should be resolved by
https://github.com/qutebrowser/qutebrowser/issues/938.

-Ryan

On Sat 06/30/18 12:00PM, Marco Bianchi wrote:
> Hi,
> I'm really sorry  to ask something already answered but I couldn't find any
> information about it (how can I search in the mailing list history?).
> I'd like to use Keepass with Qutebrowser for autocompletion or simply for
> consulting, how can I do?
> 
> Thank you very much
> best regards,
> Marco


signature.asc
Description: PGP signature


Re: [qutebrowser] Keybindings reset?

2018-05-09 Thread Ryan Roden-Corrent
> J and K weren't supposed to be bound to that

tab-next and tab-prev are the default bindings of J and K, so unless you 
disabled that it sounds like capslock could be the culprit.

> I didn't submit a crash report when this happened; can I still do so now?

I think you'll get a prompt the next time you open the browser, but if you've 
already ignored that I'm not sure. Id your systems saves coredumps you might be 
able to retrieve it, e.g. I see some entries if I run `coredumpctl list 
qutebrowser`.

>I use :bind in the browser to change my keybindings

Are the missing keybindings ones you set in the session that crashed? Its 
possible qutebrowser didn't get a chance to write your config. You don't happen 
to keep your configs under version control, do you?

-Ryan
- Ryan

On May 9, 2018 10:47:19 AM EDT, Jonathan Saunders <jonat...@saunderstech.org> 
wrote:
>I use :bind in the browser to change my keybindings. It is unlikely
>that I
>had capslock on, but even if I did, J and K weren't supposed to be
>bound to
>that. I didn't submit a crash report when this happened; can I still do
>so
>now?
>
>On Wed, May 9, 2018, 7:19 AM Ryan Roden-Corrent <r...@rcorre.net>
>wrote:
>
>> > Out of nowhere, "j" and "k" on qutebrowser started working as
>:tab-prev
>> and
>> > :tab-next instead of scrolling down and up. Then, I pressed another
>key
>>
>> Any chance you had capslock on?
>>
>> > Upon re-startup, all my custom keybindings (of which I have many)
>were
>> > reset!
>>
>> How did you configure your keybindings? Using config.py or running
>> `:bind` in the browser?
>>
>> -Ryan
>>
>> On Wed 05/09/18 10:05AM, Florian Bruhin wrote:
>> > Hey,
>> >
>> > On Tue, Apr 03, 2018 at 10:51:21AM -0400, Jonathan Saunders wrote:
>> > > Out of nowhere, "j" and "k" on qutebrowser started working as
>> :tab-prev and
>> > > :tab-next instead of scrolling down and up. Then, I pressed
>another key
>> > > ("a", I think) and the browser crashed. Upon re-startup, all my
>custom
>> > > keybindings (of which I have many) were reset!
>> > >
>> > > Has anyone else experienced this issue? Or, did I not catch the
>news
>> that
>> > > the latest version resets keybindings or something?
>> > >
>> > > I'm running qutebrowser v1.2.1-1 on Arch Linux. The last update I
>> performed
>> > > was a day ago...
>> >
>> > That sounds weird! No clue what happened there... Did you submit a
>crash
>> > report with that crash?
>> >
>> > Florian
>> >
>> > --
>> > https://www.qutebrowser.org | m...@the-compiler.org (Mail/XMPP)
>> >GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>> >  I love long mails! | https://email.is-not-s.ms/
>>
>>
>>


Re: [qutebrowser] Keybindings reset?

2018-05-09 Thread Ryan Roden-Corrent
> Out of nowhere, "j" and "k" on qutebrowser started working as :tab-prev and
> :tab-next instead of scrolling down and up. Then, I pressed another key

Any chance you had capslock on?

> Upon re-startup, all my custom keybindings (of which I have many) were
> reset!

How did you configure your keybindings? Using config.py or running
`:bind` in the browser?

-Ryan

On Wed 05/09/18 10:05AM, Florian Bruhin wrote:
> Hey,
> 
> On Tue, Apr 03, 2018 at 10:51:21AM -0400, Jonathan Saunders wrote:
> > Out of nowhere, "j" and "k" on qutebrowser started working as :tab-prev and
> > :tab-next instead of scrolling down and up. Then, I pressed another key
> > ("a", I think) and the browser crashed. Upon re-startup, all my custom
> > keybindings (of which I have many) were reset!
> > 
> > Has anyone else experienced this issue? Or, did I not catch the news that
> > the latest version resets keybindings or something?
> > 
> > I'm running qutebrowser v1.2.1-1 on Arch Linux. The last update I performed
> > was a day ago...
> 
> That sounds weird! No clue what happened there... Did you submit a crash
> report with that crash?
> 
> Florian
> 
> -- 
> https://www.qutebrowser.org | m...@the-compiler.org (Mail/XMPP)
>GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>  I love long mails! | https://email.is-not-s.ms/




signature.asc
Description: PGP signature


Re: [qutebrowser] viewing bindings

2017-11-23 Thread Ryan Roden-Corrent
Yuusha is correct, however it only applies to command-mode bindings. I don't
know of a good way to do this for other modes. 

-Ryan

On Wed 11/22/17 10:54PM, Yuusha Spacewolf wrote:
> On Thu, Nov 23, 2017 at 02:07:43AM +, Stephen Davies (sdavies) wrote:
> > 
> > If you want to know what command a key is currently bound to, you can
> > type:
> > 
> > :bind thekey
> > 
> > or
> > 
> > :bind --mode insert thekey
> > 
> > or whatever.
> > 
> > What if you want to go the other way? Is there a way to see what key(s)
> > are currently mapped to a particular command, if any?
> > 
> > - Stephen Davies, Ph.D.
> >   (step...@umw.edu)
> 
> At least on 1.0.3 (and I think it was the same on older versions, but I
> don't have one to test right now) you can see on the right side of the
> completion panel triggered by `:`, the key(s) bound to that command, if
> any.



Re: [qutebrowser] xvfb/opengl error running tests

2016-09-25 Thread Ryan Roden-Corrent
Related question: how can I pass CLI args to the test process?

One workaround I've found is to set --qt-name=qutebrowser-test and add a window
manager rule that puts all "qutebrowser-test" windows on an unused workspace.
However, I just hacked this into _default_args because I wasn't sure how to pass
an arg as a CLI argument.

-Ryan

On Sun 09/25/16 07:26PM, Ryan Roden-Corrent wrote:
> Tests are failing on my machine due to the following warning:
> 
> QtWarningMsg: QXcbIntegration: Cannot create platform OpenGL context,
> neither GLX nor EGL are enabled
> 
> This only happens on my desktop with an Nvidia card, my laptop with integrated
> graphics is fine. Has anyone else seen this? Is there a way to make the tests
> ignore a particular warning?
> 
> It works fine if I don't use xvfb, but that gets kind of annoying.
> 
> -Ryan


Re: Gmail support?

2016-03-19 Thread Ryan Roden-Corrent
I see it too (0.5.1, Archlinux).
It goes away if you change the user agent from the default. 
Try :set network user-agent and tab through the suggestions.
I've found this is actually necessary to use google hangouts.
Unfortunately, a non-default user-agent breaks a lot of the Github UI.

-Ryan

On Sat 03/19/16 07:41PM, Abraham Baker wrote:
> Hi,
> 
> I'm using the stable arch version of qutebrowser (0.5.1,
> https://www.archlinux.org/packages/?name=qutebrowser), and a few days ago I
> started seeing a message at the top of the gmail interface saying:
> "This version of Safari is no longer supported. Please upgrade to a
> supported browser."
> 
> Does anybody know if this just applies to .5.1, or if gmail is displaying
> this notice on every version of qutebrowser?  This does not break any
> functionality, but it seems strange.
> 
> Thanks,
> Abe