Git Product home page Git Product logo

Comments (9)

stevemonaco avatar stevemonaco commented on June 17, 2024 1

Conventions.DefaultScreenshotsRoot should probably return null on exception and/or we need fallbacks. It is always accessed on startup regardless of config, so if it fails, then it's fine if SuggestedStartLocation gets set to null. Better than always crashing with no mitigation. I'm not a fan of I/O in a property getter either.

I'm still unsure what the system configuration issue is though since the directory is supposed to exist on @drweb86's system.

from avalonia.

drweb86 avatar drweb86 commented on June 17, 2024

When i launch app via Ctrl+F5 - it works fine.

from avalonia.

drweb86 avatar drweb86 commented on June 17, 2024

Basically idea is to add support for corporate environments?

from avalonia.

jp2masa avatar jp2masa commented on June 17, 2024

For reference: #14069.

from avalonia.

thevortexcloud avatar thevortexcloud commented on June 17, 2024

I am guessing OneDrive is involved somehow and there is some weird folder redirection happening.

from avalonia.

drweb86 avatar drweb86 commented on June 17, 2024

Directory is indeed exists. And yes, OneDrive create symbolic links to other directories.

from avalonia.

workgroupengineering avatar workgroupengineering commented on June 17, 2024

As the docs explain, Directory.CreateDirectory ensure that the folder exists (eg: Linux does not have Screenshots folder) and creates it if it is not found.

Create a simple console app with this code and check if it works

                var dir = System.IO.Path.Combine(
                    Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "Screenshots");
                Directory.CreateDirectory(dir);

from avalonia.

drweb86 avatar drweb86 commented on June 17, 2024

Hi. Bug stopped to reproduce since today. I don't know why. Probably Microsoft Defender was blocking it. I tried to delete screenshots folder and it still works. Also I tried to rename folder. First time - name remains the same, from second time - it gets changed. And anyway in this case it also works fine.

Console app also works good.

from avalonia.

timunie avatar timunie commented on June 17, 2024

closing as not reproducible anymore.

from avalonia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.