1

I just installed calcurse, an calendar open source solution (which looks great!). I installed version calcurse version 4.7.1 via homebrew (brew install calcurse)

I cannot find where the todo and apts files are located, despite to what is written in the documentation which says that they are there:

$HOME/.calcurse/
          |___apts
          |___conf
          |___hooks/
          |___keys
          |___notes/
          |___todo

On my machine, however they are no such structure. Similar files have been installed there:

$HOME/.config/calcurse/
                ├── conf
                ├── hooks/
                └── keys

There are 2 main differences with respect to the documentation:

  • There is no $HOME/.calcurse/$ directory
  • In $HOME/.config/calcurse/: the files conf and keys are present but todo and apts are absent (at least not there)

The other location where brew installed things is in /usr/local/Cellar/calcurse/4.7.1. But there I could not find the files neither

Those files probably exist somewhere because, I imported several time appointments from a .ics file and I have (several) duplicates of those appointments. I searched for similar problems but didn't find any

How can I locate those files (todo and apts)?

Many thanks in advance!

2 Answers 2

2

I finally the found the location of those 3 missing items (apts, notes/, todo), which are in another location as the three first items (conf, hooks/ keys):

$HOME/.local/share/calcurse
                     ├── apts
                     ├── notes/
                     └── todo

Edit I also tried to install it via a straight compile of the source which resulted in exactly the same outcome:

I uninstalled the app with brew uninstal calcurse, removed manually $HOME/.config/calcurse/ and $HOME/.local/share/calcurse downloaded the source calcurse-4.7.1.tar.gz from here and installed with

$ tar -xzf calcurse-4.7.1.tar.gz
$ cd calcurse-4.7.1
$ ./configure && make && sudo make install

and got exactly installed files location. So, on my machine: whether I used homebrew or plain source, the location of the file does not correspond to the location in the documentation.

To sum up, here are the paths of the 6 items

$HOME/.config/calcurse/
                ├── conf
                ├── hooks/
                └── keys
$HOME/.local/share/calcurse
                     ├── apts
                     ├── notes/
                     └── todo

7
  • Well that looks like a bug in calcurse then the documentation should be correct. talk to the maintainers. The change in files looks like they changed the config to a standard default XDG directory structure but forgot to change the documentation
    – mmmmmm
    Jul 10, 2021 at 19:59
  • How is that "installing the port"? Jul 10, 2021 at 20:57
  • I meant installing via a MacPort. I edited the answer @MarcWilson
    – ecjb
    Jul 10, 2021 at 21:08
  • 1
    That's not installing from MacPorts. That's installing from source. Jul 10, 2021 at 21:09
  • @mmmmmm Yeah, there's a delta involved somewhere. The tarball doesn't seem to include a changelog, but there's a script in it named calcurse-upgrade that tries to migrate from the old structure to the new structure. Really weird that they'd do that, it made MUCH more sense all under one folder. The XDG spec does really suck. Jul 10, 2021 at 21:11
0

They are in $HOME/.calcurse, where the man page (and the documentation freely available from the calcurse home page) says they are.

FILES
   The following structure is created by default in your home directory the first time calcurse is run
   without any options:
       
       $HOME/.calcurse/
                 |___apts
                 |___conf
                 |___hooks/
                 |___keys
                 |___notes/
                 |___todo

(edit) I see that Homebrew has broken the application for no good reason... they seem to do that a lot. For the Homebrew build, the files are under $HOME/.local/share/calcurse rather than where they're supposed to be.

$ ls -l .local/share/calcurse
total 0
-rw-r--r--  1 mwilson  staff   0 Jul 10 11:47 apts
drwx------  2 mwilson  staff  64 Jul 10 11:47 notes
-rw-r--r--  1 mwilson  staff   0 Jul 10 11:47 todo
6
  • I read the documentation before writing the question @MarcWilson: On my machine, those files are not in the location where the documentation says they are + the 2 files of interests (apts and todo) cannot be found at all. Did you try to install the software with brew install calcurse? And if yes where are all those files located on your machine?
    – ecjb
    Jul 10, 2021 at 17:05
  • 1
    No, I would never install Homebrew on a system I cared about. I spun up a Catalina VM temporarily so I could see what their packaging did. Jul 10, 2021 at 19:00
  • Ok. I tend to use homebrew as the package manager for Mac to avoid duplicate / dependencies problem as I encountered such problems in the past when no using homebrew. If you install the application how did you do it without homebrew @MarcWilson?
    – ecjb
    Jul 10, 2021 at 19:10
  • 1
    @ecjb I read the documentation, then installed it with MacPorts as that was listed here calcurse.org/downloads as an installation method. I didn't expect that Homebrew would ignore the official documentation. Jul 10, 2021 at 19:17
  • Did you install it with MacPorts @MarcWilson? And if yes where were those files installed on your machine? Because I just uninstall the brew version and installed it with MacPorts: The files were installed in the same location as before (which still did not correspond to what was said in the documentation)
    – ecjb
    Jul 10, 2021 at 19:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .