>>> On 1/28/20 11:56 AM, Javier via artix-general wrote:
>>>> ...
>>>> keybase ctl start | kebase service
>>>> fusermount -uz "$(keybase config get -d -b mountdir)"
>>>> kbfsfuse -debug -log-to-file
>>>> KEYBASE_AUTOSTART=1 electron /usr/share/keybase-app (this on a WM or DE)
>>>> ...
>>
>> On 1/28/20 2:06 PM, Dudemanguy via artix-general wrote:
>>> I only looked at the program briefly, but it looks like it's a daemon to me and there's not any particular systemd dependencies or anything. On arch, it looks like it just comes with a systemd service file. For Artix, the proper way to do it would be to add it a service script (AKA an additional *-openrc/*-runit/*-s6 package). You could workaround it by just running it manually though.
>
> On 1/28/20 2:16 PM, Javier via artix-general wrote:
>> I was thinking manually, but calling the non gui stuff on bash_profile, if not already running, and then create a custom *.desktop for the gui with contents including commands like the ones I included. No need for a daemon, and besides, I want to have env vars like proxy available, and if in need configure keybase based on those env vars (daemons most probably won't catch what I set on env vars)... I was hoping someone might already be using keybase like that already, :)
>
On 1/29/20 11:35 AM, Javier via artix-general wrote:
> BTW, I has to be keybase service, since keybase ctl start triggers systemd stuff...
All of the above I mentioned applied, my final solution to support env. vars:
```
keybase ctl stop
if [ -n "$HTTP_PROXY" ]; then
export PROXY=$(echo $HTTP_PROXY | /usr/bin/sed 's?http://??' | /usr/bin/sed 's/[ \t\n][ \t\n]*$//')
export PROXY_TYPE="http_connect"
fi
keybase ctl init
keybase --use-default-log-file --debug service &
rm -f ~/.config/keybase/autostart_created ~/.config/autostart/keybase_autostart.desktop
kbfsfuse -debug -log-to-file &
if [ -n "$DISPLAY" ]; then
export KEYBASE_AUTOSTART=1
electron /usr/share/keybase-app &
fi
```
--
Javier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20200203/673f94ba/attachment.sig>
More information about the artix-general
mailing list