Comments (9)
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.
When i launch app via Ctrl+F5 - it works fine.
from avalonia.
Basically idea is to add support for corporate environments?
from avalonia.
For reference: #14069.
from avalonia.
I am guessing OneDrive is involved somehow and there is some weird folder redirection happening.
from avalonia.
Directory is indeed exists. And yes, OneDrive create symbolic links to other directories.
from avalonia.
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.
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.
closing as not reproducible anymore.
from avalonia.
Related Issues (20)
- stack overflow in binding system HOT 20
- The Placeholder Disappears when Setting DisplayMemberBinding on ComboBox
- AttachedToVisualTree or Loaded on UserControl gives Invalid Markup HOT 1
- Constantly High CPU usage on Win10 14393 with DirectComposition enabled HOT 4
- CheckBox fluent theme ControlTheme selectors should target control Background and BorderBrush properties instead Border#PART_Border
- 11.2.0-beta1 - XAML compiler error when using binding in style setter HOT 1
- Wrong base class in axaml code-behind causes internal compiler error in xaml compiler HOT 4
- KeyPreview for Window handles Keys before i can can set Handled HOT 1
- Scrolling ComboBox items affects parent ScrollViewer
- Setting up Design Time DataContext in Xaml causes Invalid Markup Error HOT 1
- RelativePanel contains the wrong implementation
- nuke on macOS build error CS0017: Program has more than one entry point defined. HOT 2
- Issue with BinaryReader.ReadString returning wrong value on combo WASM+AndroidDevice(not simulator)+Chrome+AOT
- [11.2.0-beta1] this.Target.Opacity doesn't work as expected in Vector3KeyFrameAnimation
- Arrange control to a smaller Rect can't shrink the size of control HOT 1
- Avalonia sometimes discards the DispatcherOperation with Input or lower priority HOT 5
- MinWidth not applied on UserControl HOT 1
- Custom font crash on Linux with 'Could not create glyphTypeface'. Works under Windows HOT 2
- Crash when tooltip overlaps mouse cursor during drag operation
- The SmallIcon for notifications in android doesn't set to app icon. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.