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)
- Consider unsealing the Render() of the Panel? HOT 6
- Alt codes do not produce expected characters
- "Call from invalid thread" process crash after tray icon menu item is invoked HOT 5
- Browser mvvm error HOT 4
- Setting `FontSize` = 0 crashes the previewer in VS 2022
- Possibly wrong pattern match in `VirtualizingStackPanel.GetControl` HOT 3
- A Fullscreen window that is returned to WindowState.Normal or Maximized when ExtendClientAreaToDecorationsHint="True" will move up and to the left slightly
- Numeric access keys not working HOT 1
- ListBox do not change selected item then PageUp/PageDn keys used HOT 3
- Infinite IterationCount does not apply with DelayBetweenIterations
- Prefer always adding the `attachDevTools` parameter in generated `InitializeComponent` of a `Window` HOT 5
- DevTools Tree Jumps HOT 4
- [FEATURE] ComboBox support for multiple selection mode (Dropdown/Select) HOT 2
- the ItemsControl elements leave when the window opens WindowState="FullScreen" HOT 3
- Memory leak on Popup with ItemsControl and UserControl with empty Binding
- Can we get an offical FlatLaf dark theme port for avalonia ui? HOT 4
- :loaded PseudoClass for initial transitions HOT 2
- Stuck due to Android soft keyboard HOT 7
- The text display is offset upwards in the Ubuntu system HOT 4
- Dinamicaly adding/removing MenuItem-s in Menu leads to memory leaks HOT 8
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.