work-site/work-notes.org

4.3 KiB

Some Technicalities about Building My Work Page

Workflow

  1. Load work.el.

      (load-file "~/Candies/Sites/work/work.el")
  2. Open index.org and publish the current project.
  3. Remove all timestamps.

      (org-publish-remove-all-timestamps)
  4. Reopen index.org and republish the current project to get the updated timestamp.
  5. Run deploy-seafile.
  6. Run nix-shell [[file:shell-seafile.nix][shell-seafile.nix]] and, within it, seafile-applet to sync the changes to the server.

Seafile problem <2020-02-17 Mon>

Problem

After another update, Seafile started telling me this when I tried to start it:

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

I did a couple hours of searching, and found some threads, which did not help:

My hack <2020-02-17 Mon>

My current hack consists in the following modifications:

  1. Add qt5.qtbase and seafile-client to home.packages in home.nix.
  2. Install seafile-shared instead of seafile-client in shell-seafile.nix.

Very weirdly, this makes seafile-applet work. I tried not doing (1) and putting all the packages in shell-seafile.nix, but it won't work. Also, again weirdly, outside of Nix shell the seafile-applet coming from the home-manager installation never gets past the message

lang = English, translation = (null), locale.name() = en_US

without showing the interface or doing whatsoever.

Proper solution?

A proper solution would probably consist in updating the Seafile package to comply with the new way to describe Qt packages.

Removing the publish cache

Org-publish will not detect files being deleted from the output. To force it to clear its caches, do the following:

  (org-publish-remove-all-timestamps)

Possible colors for the banner

  background-color: azure;
  background-color: lightcyan;
  background-color: paleturquoise;