kugel-/geany — comment on commit 19b4d462902bcc717350a52ea02ae190bfaabce5
File: src/main.c line 923
By kugel-:

Oh right. According to Lex proposal which I tried to implement, session files should be unaffected. This is not currently the case, and slightly more tricky to implement.
Regarding *.geany, you are probably right, and it would be painful to implement indeed (I suspect a new field session_readonly in geany document, which is not dumped to disk would be needed).

Perhaps, as a quick-fix solution ignore --readonly if no files or a *.geany file was given? My use-case which I need this option for is only to open single files, launched from another piece of software.