Ask Your Question
0

How to know there is instance(libre office) present already

asked 2018-12-25 15:06:39 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Im using python, Getting issues when i use multi-threading (unable to convert some documents(at a given time) ) . So how should i ensure whether there is only single instance(job running ) of libre in background.
Gone through the docs of soffice(linux- ubuntu) Couldnt find any functionality like that.(Even in unoconv) OR How should i convert documents in batch . # Using multi threading in python to convert documents(doc to pdf) parallel

edit retag flag offensive close merge delete

Comments

@yunus: this is related to tdf#120676.

Mike Kaganski gravatar imageMike Kaganski ( 2018-12-25 15:37:37 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-12-25 15:41:22 +0100

updated 2018-12-25 15:41:33 +0100

As a temporary workaround, you could use a temporary unique profile directory for each process (see command-line parameters help), so that they don't conflict with each other. This introduces an overhead to initialize the profile; or to copy a pre-made profile to a temporary location before launching soffice (if you need some settings pre-set in the profile); and also for clean-up afterwards.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-12-25 15:06:39 +0100

Seen: 111 times

Last updated: Dec 25 '18