[Libreoffice] [PATCH] Replace command domainname by getdomainname() on Unix

Tor Lillqvist tml at iki.fi
Mon Nov 14 05:23:18 PST 2011


Considering actual multi-user site scenarios, I think it is fairly
useless to have the name of the machine in the lock file. Consider
these examples:

1) Alice wants to edit a document. Computer says "No". Er, sorry, been
watching too much Little Britain.

I mean, LO says "document is locked by Bob on
lab-pc-34-f7-a1.campus.city.example.com" . Now what? Alice probably
doesn't know which of the dozens of PCs in some lab is the one whose
official name is lab-pc-34-f7-a1 . And it might even be a dynamically
assigned name that could  indicate *any* of them. So she just calls
Bob who says "ok, I'll close it".

And even if she would know which machine it actually is, and that
would be within walking distance, that gets us to :

2) LO says "document is locked by Bob on rubber-duck.exmple.com".
Alice knows that rubber-duck is Bob's personal desktop (she doesn't
want to know why it is called that), and phones Bob. No reply. Alice
walks over to his cubicle, sees he is gone for a long lunch (it's
Friday), with machine locked. How useful to know that the document is
open on that machine... no?

In both cases, just knowing *who* is holding the document open would be enough.

--tml


More information about the LibreOffice mailing list