Git Product home page Git Product logo

Comments (8)

aadcg avatar aadcg commented on September 24, 2024

@apsinthium please share you config file.


Could be related to 1871bd0.

from nyxt.

apsinthium avatar apsinthium commented on September 24, 2024
(defmethod customize-instance ((browser browser) &key)
  (setf (slot-value browser 'restore-session-on-startup-p) t))
  
(defmethod customize-instance ((buffer buffer) &key)
  (setf (slot-value buffer 'default-modes)
          '(nyxt/mode/reduce-tracking:reduce-tracking-mode
            nyxt/mode/blocker:blocker-mode
            nyxt/mode/certificate-exception:certificate-exception-mode
            nyxt/mode/annotate:annotate-mode nyxt/mode/bookmark:bookmark-mode
            nyxt/mode/history:history-mode nyxt/mode/password:password-mode
            nyxt/mode/hint:hint-mode nyxt/mode/document:document-mode
            nyxt/mode/search-buffer:search-buffer-mode
            nyxt/mode/autofill:autofill-mode
            nyxt/mode/spell-check:spell-check-mode base-mode)))
            
(defmethod initialize-instance :after
           ((interface password:keepassxc-interface)
            &key &allow-other-keys)
  "It's obviously not recommended to set master password here,
as your config is likely unencrypted and can reveal your password to someone
peeking at the screen."
  (setf (password:password-file interface)
          "/home/absinthium/Documents/Documents/Backups/Encrypted/Passwords.kdbx"))

(define-configuration nyxt/mode/password:password-mode
  ((nyxt/mode/password:password-interface
    (make-instance 'password:keepassxc-interface))))

(define-configuration buffer
  ((default-modes
    (append (list 'nyxt/mode/password:password-mode) %slot-value%))))
            
(define-configuration browser
  ((external-editor-program (list "flatpak" "run" "org.gnome.TextEditor"))))

from nyxt.

aadcg avatar aadcg commented on September 24, 2024

On seconds thoughts, this may be because the Flatpak can't locate keepassxc-cli.

@apsinthium what's the output of:

flatpak run engineer.atlas.Nyxt  --eval "(serapeum:resolve-executable \"keepassxc-cli\")" --quit

from nyxt.

apsinthium avatar apsinthium commented on September 24, 2024

flatpak run engineer.atlas.Nyxt --eval "(serapeum:resolve-executable \"keepassxc-cli\")" --quit

<WARN> [03:09:07] Warning: Error in s-exp evaluation: The variable KEEPASSXC-CLI is unbound. NIL

from nyxt.

aadcg avatar aadcg commented on September 24, 2024

@apsinthium you didn't enter the command as I've described. Did you escape the quotes? Please paste flatpak run engineer.atlas.Nyxt --eval "(serapeum:resolve-executable \"keepassxc-cli\")" --quit.

I think you should see something along the lines of

$ flatpak run engineer.atlas.Nyxt  --eval "(serapeum:resolve-executable \"keepassxc-cli\")" --quit

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/aadcg/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

<INFO> [11:12:38] Loading Lisp file #P"/home/aadcg/.config/nyxt/config.lisp".
NIL

from nyxt.

apsinthium avatar apsinthium commented on September 24, 2024

I entered the exact command you posted. I just forgot to surround your quote in a code block so the escapes were removed. See here.

from nyxt.

aadcg avatar aadcg commented on September 24, 2024

@apsinthium Now you did it correctly. The output differs from the one above.


Two things here:

  1. The password manager must error when the call (executable interface) returns nil in execute from password.lisp. @aartaka could you address it?
  2. We need to understand how to manage system binaries when Nyxt is run as a Flatpak. We already pass --filesystem=host. I need to think.

from nyxt.

aadcg avatar aadcg commented on September 24, 2024

The solution to 2. is to invoke the password manager as flatpak-spawn --host keepassxc-cli. But first I need to tweak the Flatpak settings. Then we can test it.

Depends on flathub/flatpak-builder-lint#194.

from nyxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.