Re: [qutebrowser] Can't locate dictcli.py on macOS

2019-03-28 Thread Florian Bruhin
On Thu, Mar 28, 2019 at 02:38:32PM +0100, Valentin Iovene wrote:
> Note that running this did not ask for any root access.

It only needs that for Qt < 5.10.

> One solution might be to add an executable script in
> 
>   /usr/local/bin/qutebrowser-dictcli
> 
> that allows people to at least simply install new dicts from the
> terminal?

An .app can't add a script to /usr/local/bin, and there isn't anything like an
installer for qutebrowser (it's just a .dmg with an .app you drag to
/Applications, like many macOS apps).

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] Can't locate dictcli.py on macOS

2019-03-28 Thread Valentin Iovene
Thank you guys for your answers.

I ended up cloning the qutebrowser repo from GitHub and running the
following from within the repo

  python3 scripts/dictcli.py install it-IT

and it worked out of the box.

Note that running this did not ask for any root access.

One solution might be to add an executable script in

  /usr/local/bin/qutebrowser-dictcli

that allows people to at least simply install new dicts from the
terminal?

-- 
Valentin


Re: [qutebrowser] Can't locate dictcli.py on macOS

2019-03-28 Thread Florian Bruhin
On Thu, Mar 28, 2019 at 08:19:26AM -0300, Javier Ayres wrote:
> I installed qutebrowser with pip for the sole purpose of downloading
> dictionaries. The pip version wouldn't work for me so I'm using the dmg
> installer, but anyway I installed it via pip, downloaded dictcli.py from
> GitHub (now that I think it's possible that it already comes with the
> version installed via pip...), ran it, and then deleted it and uninstalled
> qutebrowser from pip.
> 
> Far from simple but it works.

Oh, right - I'd have expected that this doesn't work because of the different
paths caused by the different Qt/Python versions. But it does with Qt >= 5.10
as they're saved in qutebrowser's data directory which stays the same.

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] Can't locate dictcli.py on macOS

2019-03-28 Thread Javier Ayres
I installed qutebrowser with pip for the sole purpose of downloading
dictionaries. The pip version wouldn't work for me so I'm using the dmg
installer, but anyway I installed it via pip, downloaded dictcli.py from
GitHub (now that I think it's possible that it already comes with the
version installed via pip...), ran it, and then deleted it and uninstalled
qutebrowser from pip.

Far from simple but it works.

On Thu, Mar 28, 2019, 07:25 Florian Bruhin  wrote:

> On Thu, Mar 28, 2019 at 10:27:25AM +0100, Valentin Iovene wrote:
> > I need to install a new dictionary for spell checking in qutebrowser
> > but I am having a hard time locating dictcli.py on macOS.
> >
> > I installed qutebrowser using `brew cask install qutebrowser`.
> >
> > I've tried to `locate dictcli.py` with no result, also looked in
> > folders where I expected the script to be.
>
> I don't think it's possible to run it currently, as you can't launch
> qutebrowser's Python interpreter shipped with qutebrowser.
>
> See https://github.com/qutebrowser/qutebrowser/issues/3321
>
> > It would be nice to have a way of installing new dictionaries from
> > within qutebrowser, rather than having to find a script and run it.
> > This would improve the already great user experience :-)
>
> I agree! The reason for the script was that it needs root to install
> dicitonaries on older Qt versions (< 5.10) and you wouldn't want to run
> qutebrowser as root.
>
> See https://github.com/qutebrowser/qutebrowser/issues/4003
>
> 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] Can't locate dictcli.py on macOS

2019-03-28 Thread Florian Bruhin
On Thu, Mar 28, 2019 at 10:27:25AM +0100, Valentin Iovene wrote:
> I need to install a new dictionary for spell checking in qutebrowser
> but I am having a hard time locating dictcli.py on macOS.
> 
> I installed qutebrowser using `brew cask install qutebrowser`.
> 
> I've tried to `locate dictcli.py` with no result, also looked in
> folders where I expected the script to be.

I don't think it's possible to run it currently, as you can't launch
qutebrowser's Python interpreter shipped with qutebrowser.

See https://github.com/qutebrowser/qutebrowser/issues/3321

> It would be nice to have a way of installing new dictionaries from
> within qutebrowser, rather than having to find a script and run it.
> This would improve the already great user experience :-)

I agree! The reason for the script was that it needs root to install
dicitonaries on older Qt versions (< 5.10) and you wouldn't want to run
qutebrowser as root.

See https://github.com/qutebrowser/qutebrowser/issues/4003

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