Mu: Mu creates directories in my home

Created on 30 Jul 2016  路  12Comments  路  Source: mu-editor/mu

Every time I start Mu, it creates a directory called "python" in my home directory. Not only is this extremely annoying, but it also took me some time to figure out which application is responsible for this, as the name is completely unrelated to Mu.

If it needs a configuration directory, I would suggest using ~/.config/mu by default (or even better, follow the xdg standard for configuration directories).

Most helpful comment

Upon reflection it should be something like mu_code - it names the application _and_ tells you what's in it.

All 12 comments

Hi @deshipu!

Mu _does_ use the standard location for configuration. The python directory is for your source code. The feedback I got from Carrie Anne was that kids (and teachers) wanted a single standard place for their code on all the computers they used. Mu, by default, checks the expected ~/python directory for loading and saving.

How about I add a configuration option for default source code directory..? If you're 1337 enough to get annoyed by the python directory you'd certainly be 1337 enough to read the docs and update the settings in the very simple JSON file that Mu uses. ;-)

Can you also make it so that if it's set to "", no directories are created at all?

By the way, not sure if "python" is a good default name, you can get conflicts with other python-related tools that had a similar idea...

Upon reflection it should be something like mu_code - it names the application _and_ tells you what's in it.

That sounds great, thank you. Sorry for complaining, but I figured that I will tell you, and you can ignore it if there are more pressing things to work on.

I was thinking about this as well a few days ago when reading https://github.com/ntoll/mu/issues/86.
Having the option in the config file would be a good alternative to be able to set this option to something different if required, but not having to worry about it.

as templates and project types are being added a Mu Projects or Mu Workspace folder would probably be better than a python folder, although we do need to be careful not to form a directory structure of too much complexity the 'stick everything in one folder' approach may not be the best

I'm working on changing the name to mu_code, which seems simple but fairly self-explanatory.

I would still love to not have it at the top level of my home directory.

For that we will add a new entry to the settings file to select the project folder location. The change @tibs is mentioning will only modify the mane of the folder itself.
We will keep issue #86 open at the moment to cover this settings file entry.

@deshipu Having it in the top level of your home directory is precisely where teachers and students have told us they want to find it! ;-)

Of course, you should be able to override it as per #86.

I don't think #156 fixes the original issue reported here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

probonopd picture probonopd  路  5Comments

dannystaple picture dannystaple  路  5Comments

carlosperate picture carlosperate  路  8Comments

mkarikom picture mkarikom  路  5Comments

carlosperate picture carlosperate  路  7Comments