Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Detection and setting of HOME environment variable for Open/LibreOffice to use #101
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
s0600204
Oct 17, 2012
Owner
I should probably point out that this is my first attempt at coding in python, so apologies for any errors.
I should probably point out that this is my first attempt at coding in python, so apologies for any errors. |
s0600204
added some commits
Oct 24, 2012
s0600204
referenced this pull request
in OpenELEC/OpenELEC.tv
Apr 15, 2013
Closed
Mount /var as tmpfs (not ramfs) and limit the use of tmpfs #2135
s0600204
added some commits
Aug 5, 2013
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
pataquets
Apr 10, 2015
Contributor
+1. This could save a lot of pain and is an easy solution.
Not to mention that the simple presence of the command line option alone could save lots of hair-pulling to people by hinting possible causes to obscure LO exit codes.
+1. This could save a lot of pain and is an easy solution. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
pataquets
commented on 425e514
Apr 10, 2015
+1. The verboser, the better. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
s0600204
commented
Jul 5, 2015
s0600204
closed this
Jul 5, 2015
dagwieers
reopened this
Jul 5, 2015
I prefer to keep it open until we have decided how to implement it in #87, if you don't mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
s0600204
commented
Jul 5, 2015
That's absolutely fine, it's your project. |
s0600204 commentedNov 26, 2012
When run, Unoconv now checks to see if the HOME environment variable is set and valid (i.e. exists and is writeable to). If neither of these things or if the user passes a '-H' argument, then Unoconv creates a temporary folder and sets that as HOME for the duration of the conversion, deleting it and its contents after use.
The user can also specify (with '--home=PATH') an alternate directory to use as HOME, and Unoconv will check that this is usable, defaulting to the user's HOME if not or a temporary folder if the user's HOME is not valid either.
As using a folder that has never been used before by Open/LibreOffice as HOME will cause Office to exit with code 81 (normal restart), Unoconv will catch this and try again. Unoconv will attempt to do this three times (four if you include the initial invocation) before giving up (to prevent an endless start-quit-start-quit cycle).
With any luck this should resolve issue #87. It certainly does for me.馃槃 May also resolve issues 85 and 86.