Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer creation failed, permission denied #32801

Closed
emiliojuarezhz opened this issue Nov 12, 2019 · 8 comments
Closed

Layer creation failed, permission denied #32801

emiliojuarezhz opened this issue Nov 12, 2019 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@emiliojuarezhz
Copy link

I want to create a shade layer but when I summit it the app gave the advice "Layer creation failed:falied to create file .shp. permission denied"

qgis.docx

@emiliojuarezhz emiliojuarezhz added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 12, 2019
@gioman
Copy link
Contributor

gioman commented Nov 12, 2019

I want to create a shade layer but when I summit it the app gave the advice "Layer creation failed:falied to create file .shp. permission denied"

have you just entered the name to give the shapefile or you also choose a proper path, pointing to a folder where you have write permissions?

@gioman gioman added the Feedback Waiting on the submitter for answers label Nov 12, 2019
@Gustry
Copy link
Contributor

Gustry commented Nov 12, 2019

@emiliojuarezhz Use the 3 dots next to it. This field is not a file name input, it's a file path that you must write. Using the 3 dots will highly solve your problem.

Note, this is a very common issue. We should flag this as an UX issue. Should we display in red the background of this field when the file is not writable with a tooltip? Should we enable this field with a double click?

@DelazJ
Copy link
Contributor

DelazJ commented Nov 12, 2019

@Gustry at least, there's already a tooltip. Maybe the label should be renamed: "file name" --> "File path"?

@ghost
Copy link

ghost commented Feb 13, 2020

The new implementation of these three dots menus in creation of shapes is very frustrating . With no home directory in preferences, the data can be inserted in all fields and an attempt to save without using the menu to set directory fails loosing data this is now taking me twice or three times as long to enter shapes into QGIS . making it a backward step in QGIS design. Please rethink your development although this is nice to be able to set the path . When creating 30 or morre shapes this becomes tiresome and if i could go back to previous version i would that didn't have this! Feature added

@roya0045
Copy link
Contributor

I'm pretty sure it always was that way as far as I can remember. Though defaulting to the project path should be easy.

@ghost
Copy link

ghost commented Feb 13, 2020

@roya0045 , Alex , I opened a new feature request for this as it doesn't exist to create a home project directory #34454 but @gioman sated it was a duplicate to #32801 which you will find if you hover over it you will find its a bug report not a feature request.IT used to do this two days a go since this '...' was added to windows version it defaults to system32 directory which has no permission for QGIS. Now if you forget to press the '..' if the telephone rings or you go-into another program to get the reference number and forget you haven't pressed it it is incredibly frustrating creating duplicated work. And takes creating these shapes as mush as three times as long.

@roya0045
Copy link
Contributor

The ... and defaulting to sys 32 is not new and should be fixed by replacing QDir::homePath() by QgsProject::instance()->homePath() at the right place in the code.

@alexbruy
Copy link
Contributor

Duplicates #35651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

6 participants