Please add some Documentation for installation #2

Closed
opened 2020-08-20 14:09:37 +02:00 by aitzkora · 5 comments

Hi!
I use qutebrowser and recently I decided to automatically remove the cookies at the end of the session. Your small utility seems to be suited if I want to keep my cookies for some websites. Unfornutately, I did not manage to install it, due to dependencies to selda. I could imagine that the installation is pretty standard, but If you could describe it as a list of commands, it would be very nice. (I tried to use stack to install all the dependencies, after
I managed to compile Setup.hs, but I am not able to configure to use the selda libraries installed by stack).
Bests

Hi! I use qutebrowser and recently I decided to automatically remove the cookies at the end of the session. Your small utility seems to be suited if I want to keep my cookies for some websites. Unfornutately, I did not manage to install it, due to dependencies to selda. I could imagine that the installation is pretty standard, but If you could describe it as a list of commands, it would be very nice. (I tried to use stack to install all the dependencies, after I managed to compile Setup.hs, but I am not able to configure to use the selda libraries installed by stack). Bests

Sorry for the late reply, I should check more often.

Yes, the installation is pretty standard: bisc is distributed on Hackage (which is a repository of Haskell packages) so it can be installed using cabal install bisc or similarly with stack. Both tools can act as package managers: they download the source of bisc and its dependencies and build all automatically.

Alternatively, If you are using Nix or NixOS, you'll find it as haskellPackages.bisc, this is what I use on my computer.

I could try to upload a static build of bisc here, then you would just have to download the binary and it should just work.

Sorry for the late reply, I should check more often. Yes, the installation is pretty standard: bisc is distributed on [Hackage](http://hackage.haskell.org/package/bisc) (which is a repository of Haskell packages) so it can be installed using `cabal install bisc` or similarly with `stack`. Both tools can act as package managers: they download the source of bisc and its dependencies and build all automatically. Alternatively, If you are using Nix or NixOS, you'll find it as `haskellPackages.bisc`, this is what I use on my computer. I could try to upload a static build of bisc here, then you would just have to download the binary and it should just work.

Ok, I updated the readme with some instruction and added a static binary: it's much easier than I expected.

Ok, I updated the readme with some instruction and added a static binary: it's much easier than I expected.

Thanks for taking time to reply and putting a static binary on line
I'll give a try and give you rapidly a feedback

Thanks for taking time to reply and putting a static binary on line I'll give a try and give you rapidly a feedback

Nice Job!
I could endly browse privately keeping my cookies for my local search engine.
And the installation with stack seems finally to work after adding a line to
/home/fux/.stack/global-project/stack.yaml
A last question : How do run automatically bisc : you use cron, at or there is a trick in qutebrowser to run automatically a script or application when it close ?
Bests regards

Nice Job! I could endly browse privately keeping my cookies for my local search engine. And the installation with stack seems finally to work after adding a line to /home/fux/.stack/global-project/stack.yaml A last question : How do run automatically bisc : you use cron, at or there is a trick in qutebrowser to run automatically a script or application when it close ? Bests regards

Thanks for taking time to reply and putting a static binary on line I'll give a try and give you rapidly a feedback

You're welcome. It's good to know one of my program can be of help to other people.

A last question : How do run automatically bisc : you use cron, at or there is a trick in qutebrowser to run automatically a script or application when it close ? Bests regards

I binded to a key the action of closing the tab and then running bisc. Plus another key to just run bisc. The configuration is like this

config.bind('x',  'tab-close;; spawn bisc', mode='normal')
config.bind('co', 'spawn bisc', mode='normal')

A word of warning, though: Florian said it's not safe to modify the cookies database while QtWebEngine is running because it could get corrupted. However, I've never had any problem with this setup, which is a couple years old at this point.

I pretty sure there is a hook or something to run code before the qutebrowser close but I've never tried it. The simplest thing that comes to mind is a shell alias

alias qb="qutebrowser; bisc"
> Thanks for taking time to reply and putting a static binary on line I'll give a try and give you rapidly a feedback You're welcome. It's good to know one of my program can be of help to other people. > A last question : How do run automatically bisc : you use cron, at or there is a trick in qutebrowser to run automatically a script or application when it close ? Bests regards I binded to a key the action of closing the tab and then running bisc. Plus another key to just run bisc. The configuration is like this ``` config.bind('x', 'tab-close;; spawn bisc', mode='normal') config.bind('co', 'spawn bisc', mode='normal') ``` A word of warning, though: Florian said it's not safe to modify the cookies database while QtWebEngine is running because it could get corrupted. However, I've never had any problem with this setup, which is a couple years old at this point. I pretty sure there is a hook or something to run code before the qutebrowser close but I've never tried it. The simplest thing that comes to mind is a shell alias ``` alias qb="qutebrowser; bisc" ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rnhmjoj/bisc#2
There is no content yet.