flags.txt must be in the joplin-desktop folder, not next to it.