main.lisp 595 B

12345678910111213141516171819202122
  1. (in-package :lilu-desk)
  2. (defvar *init-file* "init.lisp")
  3. (defvar *config-file* "config.lisp")
  4. (defun initialize ()
  5. (lilu-config:register-system-config-directories)
  6. (let ((init-file (lilu-config:find-config-file *init-file*)))
  7. (if init-file
  8. (load init-file)
  9. (error "init file (~A) not found" *init-file*)))
  10. (lilu-app::discover-applications t))
  11. (defun configure ()
  12. (let ((config-file (lilu-config:find-config-file *config-file*)))
  13. (if config-file
  14. (load config-file)
  15. (error "config file (~A) not found" *config-file*))))
  16. (initialize)
  17. (configure)