Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.15k stars 213 forks source link

Strange error when no .qucs directory #258

Closed leo-from-spb closed 9 years ago

leo-from-spb commented 9 years ago

I've installed Qucs, then reveal a new strange empty directory .qucs (started with dot), and renamed it to qucs (without dots). I started Qucs, made a schema, saved it to directory qucs (successfully) and then attempted to run it (F2). Qucs shown an error that it cannot save schema…

Creating a new directory .qucs (with dot) is a current workaround.

So, I see two problems here:

  1. why does it tries to use directory .qucs when I asked to save schema into qucs;
  2. in error message id doesn't show the file name and path, that can confuse users.
leo-from-spb commented 9 years ago

P.S. version 0.0.18

nvdl commented 9 years ago

.qucs is the working directory of Qucs where it saves the log, netlist etc for the simulation. You can consider it as a temporary directory for the application.

You can change Qucs home in the settings.

leo-from-spb commented 9 years ago

.qucs is the working directory of Qucs

A strange requirement. Anyway, an application should check that such directory exists and write-available, and show a clear note what's happened.

P.S. what if there are other applications that put their stuff into ~/.qucs? ;) I think it'd be better to ask to configure such paths at the first start, or when detected that the path doesn't exist or unavailable.

ra3xdh commented 9 years ago

I don't see any problems here. Hidden directory in $HOME is standard behavior for all UNIX applications (For example ~/.mozilla --- for Firefox ~/.vim --- for Vim ~/.opera --- for Opera). All these applications uses these directories to store settings, cache, etc. All of these applications don't ask to configure this directory path.