I know that there are many ways to logically separate concerns by project in a single Emacs instance. However, what I'd like to do is to get one Emacs instance per project and one instance for any file that is not bound to any project. For checking the project of a file, I'd like to refer to project.el facilities.
Opening a file from my Linux-based OS file manager may result in either re-using a frame of an already existing instance or spawning a frame of a newly created instance, depending of whether the file's project (if existing) is opened or not. None of these instances should be opened as headless daemons, as I'd like the "Buffer changed" dialog to appear when closing the last window. How can I achieve something like this?
xdg-open. My request does not affect opening a file throughC-x C-f