Skip to content

Commit

Permalink
renderer/gtk(gtk-extensions-directory): Extend against *libdir*.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed Dec 6, 2023
1 parent 2c94866 commit c6fe367
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions source/renderer/gtk.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,7 @@ the renderer thread, use `defmethod' instead."
((files:name "gtk-extensions")
(files:base-path (uiop:merge-pathnames* "nyxt/" nasdf:*libdir*)))
(:export-class-name-p t)
(:documentation "Directory where to load the 'libnyxt' library.
By default it is found in the source directory."))

(defmethod files:resolve ((profile nyxt-profile) (file gtk-extensions-directory))
(let ((system-directory (call-next-method)))
(if (uiop:directory-exists-p system-directory)
system-directory
(files:join (files:expand *source-directory*) "/libraries/web-extensions/"))))
(:documentation "Directory to load WebKitWebExtensions from. "))

(define-class cookies-file (files:data-file data-manager-file)
((files:name "cookies"))
Expand Down

0 comments on commit c6fe367

Please sign in to comment.