phase1geo / Minder

Mind-mapping application for Elementary OS
GNU General Public License v3.0
976 stars 70 forks source link

command-line export not working when an instance is already running #624

Open eudoxos opened 1 week ago

eudoxos commented 1 week ago

I am using the command-line interface to automate export of mindmaps via com.github.phase1geo.minder map.minder --export=markdown map.md. This only works when an instance of Minder (=GUI) is not running. Otherwise it re-uses the running window, only opens the map (or focuses it if already opened), and ignores the --export=markdown map.md bit.

On a similar note, if no instance is running, the export briefly opens the GUI (thus cannot be run headless).

I much appreciate Minder, and I know development of anything is hard. So please take this just as a modest suggestion which would make my life easier.

phase1geo commented 1 week ago

I think I can make things better when running the command-line while the window is displayed. I'm not sure what I can do about the headless bit, but I'll look into it. This might not be a lot of effort to get this working as you need it to.