id summary reporter owner description type status priority milestone component version resolution keywords cc cpu platform 3631 Mapset remains locked after switch to it and exit wenzeslaus grass-dev@… "To reproduce: 1. Start in mapset A. 2. Switch to mapset B. 3. Exit. 4. Mapset B is still locked. The problem is that `grass.py` tries to remove the lock from A, but that was already removed. No warning or error is generated, because `grass.py` ''tries'' (`try_remove()`) and thus ignores any errors. This behavior seems to be there at least since 7.0 (by looking at the code). Influences: * G7:g.mapset * ''Settings > GRASS working environment > ...'' * workspace loading with ""session"" (#3575)" defect closed normal 7.6.0 Startup svn-trunk fixed init, grass.py, lock, gislock, g.mapset Unspecified Linux