#999 --list-documents option doesn't work when run as a cron job

None
closed
nobody
None
v0.21
5
2013-10-14
2013-10-14
a a
No

For example, when the crontab entry " * * * geany --list-documents > ~/geanylist.txt" runs, the file ~/geanylist.txt becomes a 0-byte file. See http://askubuntu.com/questions/357336/script-wont-run-properly-in-crontab-no-path-or-permission-problems for more details.

$ geany -V
geany 0.21 (built on Mar 19 2012 with GTK 2.24.10, GLib 2.31.20)
$ uname -a
Linux <machinename> 3.2.0-54-generic-pae #82-Ubuntu SMP Tue Sep 10 20:29:22 UTC 2013 i686 i686 i386 GNU/Linux

Discussion

  • a a
    a a
    2013-10-14

    crontab entry should have five asterisks, formatting ate some of them.

     
  • Lex Trotman
    Lex Trotman
    2013-10-14

    • status: open --> pending-works-for-me
     
  • Lex Trotman
    Lex Trotman
    2013-10-14

    Works in current git with the addition of the --display option noted below.

    The askubuntu thread comment is almost right, add --display=:0.0 to the command in the crontab.

    By default Geany looks for the Geany running on the same server, but as the askubuntu post says, running on cron there is no display, so it looks for a Geany running without a display, which it can't find, so the list is empty.

     
  • a a
    a a
    2013-10-14

    Thanks Lex, this works for me. I would suggest putting a sentence about it in the documentation, but it seems like a very uncommon problem.

    Can/should I close this issue?

     
    Last edit: a a 2013-10-14
  • Lex Trotman
    Lex Trotman
    2013-10-14

    Done.

     
  • Lex Trotman
    Lex Trotman
    2013-10-14

    • status: pending-works-for-me --> closed