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

workspacer.config.csx not in documented location #387

Open
YesSeri opened this issue Nov 6, 2022 · 2 comments
Open

workspacer.config.csx not in documented location #387

YesSeri opened this issue Nov 6, 2022 · 2 comments

Comments

@YesSeri
Copy link
Contributor

YesSeri commented Nov 6, 2022

In the quickstart page it says the following:

A configuration file can be generated by right clicking the workspacer system tray icon, and selecting the option to create an example configuration in:

C:\Users\<username>\.config\workspacer\workspacer.config.csx

I followed the instructions but there was no workspacer folder inside my C:\Users\Henrik\.config\. I found the workspacer.config.csx in a different place.

PS C:\> Get-Childitem -Path 'C:\Users\' -Include workspacer.config.csx -Recurse -ErrorAction SilentlyContinue


    Directory: C:\Users\Henrik\.workspacer


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         11/5/2022  10:23 PM            864 workspacer.config.csx

This location: C:\Users\Henrik\.workspacer\workspacer.config.csx

It took quite some time for me to figure this out. Do you want me to update the docs with the correct information?

@josteink
Copy link
Member

josteink commented Nov 8, 2022

This change may or may not be intentional, but for the time being, yes I think the best option is to document it.

If you provide a PR, I'll try to get it merged :)

@kalocsaibotond
Copy link

I think, I got cought in the same bug as you. What I found out, is that when I put my config files into C:\Users\<username>\.config\workspacer, Workspacer does not detects / applies the configuration. It only applies the configuration if I put it into C:\Users\<username>\.workspacer . Also when I run the create example configuration option, workspacer creates C:\Users\<username>\.workspacer folder and then puts there the example configuration.

So we can conclude that Workspacer, in actuality does not look at the C:\Users\<username>\.config\workspacer directory for configuration, and this is the nature of the bug. It could be a feature if the documentation were rectified.

Considering, the Unix-style dot file placement, it would not much of a stretch to implement XDG Base directory specification compliance as much as possible on windows. The author of the documentation already shows an intent to that, since, (s)he denoted C:\Users\<username>\.config\workspacer as a possible location for config files, and the default value of $ENV:XDG_CONFIG_HOME is C:\Users\<username>\.config .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants