Open KimmoHop opened 1 year ago
See also https://trac.osgeo.org/osgeo4w/ticket/759#comment:4 for another side effect of having the user "home" directory as "Start in" path in the shortcut link.
@agiudiceandrea maybe the installer should not set "start in" path at all? I'll check on Monday which installer we use, but it's more QGIS installer (with OSGEO4W) than OSGEO4W installer (with QGIS) :)
In our case, desktop folder shortcuts (created by the installer for every user, or do they come from default etc. ? The server looks like it maps user directories from network drive or something like that) have "clean" paths. QGIS runs fine until scipy tries to access "start in" directory.
While you're at it: The msi installer, at least the current LTR version 3.28.4, also creates a shortcut "Setup", but the linked bin\osgeo4w-setup-work.exe is not installed. Because the shortcut uses bgspawn.exe, the error dialog is hidden and the shortcut results in a sound only.
While you're at it: The msi installer, at least the current LTR version 3.28.4, also creates a shortcut "Setup", but the linked bin\osgeo4w-setup-work.exe is not installed. Because the shortcut uses bgspawn.exe, the error dialog is hidden and the shortcut results in a sound only.
@Redoute, that issue will not allegedly occur with the next all-in-one standalone MSI installers. Please see https://github.com/qgis/QGIS/issues/51771 and https://github.com/jef-n/OSGeo4W/commit/edf7e7dd4a3c39fb6b4118874f4b16cd7d48d6d9.
What is the bug or the crash?
QGIS Windows installer creates folder of shortcuts on desktop. Shortcuts have "Start in" path, which points to home directory of the user who did installation.
When some module uses scipy Python module, it tries to access cwd (current working directory, but why ?) - which seems to be "Start in" path of the shortcut. cwd can be tested in QGIS Python console, see below. This can become a problem in multi-user environments, where other users don't have access rights to home directory of the user who did installation. scipy crashes.
Error from scipy:
Checking cwd in Python console:
Steps to reproduce the issue
Versions
QGISin versio 3.22.16-Białowieża QGIS-koodin versio 6f08e4d7 Qt:n versio 5.15.3 Python-versio 3.9.5 GDAL/OGR:n versio 3.6.2 PROJ-versio 9.1.1 EPSG-rekisteritietokannan versio v10.076 (2022-08-31) GEOS-versio 3.11.1-CAPI-1.17.1 SQLite-versio 3.39.4 PDAL-versio 2.4.3 PostgreSQL:n asiakkaan versio 14.3 SpatiaLite-versio 5.0.1 QWT-versio 6.1.6 QScintilla2-versio 2.13.1 Käyttöjärjestelmän versio Windows Server 2012 R2 Version 6.3 (Build 9600)
Aktiiviset python-lisäosat db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.5 processing 2.12.99 sagaprovider 2.12.99
Supported QGIS version
New profile
Additional context
No response