element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) .eaglerc and eaglerc.usr files
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Autodesk EAGLE requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 144 subscribers
  • Views 697 views
  • Users 0 members are here
Related

.eaglerc and eaglerc.usr files

kikoun
kikoun over 9 years ago

Hi,

 

At my office I work on a windows platform, and at home on a linux one. In both case I work with the same eagle version (6.5.0) ( even if it's with 2 different licenses :at work, one license belonging to my company, and at home one license I bought my self). I have some trouble to synchronize user preferences on the two platforms and also to archive them on a server. On linux, it's easyer because all user data is located in the user directory. But on windows (XP), it's not so that simple and it depends on  windows version etc...

 

On eagle, user specific data  (assign, colors etc..) are stored in $HOME/.eaglerc on linux, but in $HOME/eaglerc.usr on windows.  Why using 2 different names ? It would be easier to use synchronization tools with the same file name !

 

Second problem is the location of the file. We can use $HOME environment variable under windows to define a better location for eaglerc.usr file, but changing this variable could be a problem for other software... and if we don't use it, the eaglerc file is lost in "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData" directory.... (VERY EASY TO FIND  !!! image) And this case the $HOME is useless to define project, librairies,cam,... directories.

 

Third point, I approve James Morrison, (post "V7 installation") : each version should use a different eaglerc file name (with the version number in the name)...

 

 

So I suggest this:

  • Eagle could still use a file name and location like V6 version does (with the adjustments proposed by James, see V7 installation post).
  • BUT with 2 improvements :
    • It's possible to define the $HOME directory in the eaglerc file.
    • if a key "User.Eaglerc.file" is set with a valid file path, eagle stop reading the current file, and use this new file instead (like the -Uxxx command line option does) .

 

So by default the behavior is unchanged.

We can define the $HOME without changing environment variable.

We can define the name and where is the user-preference file.

It's also a way to configure a permanent -Uxxx option for eagle.

 

Here an example:

  • On windows PC:
    • I copy the eaglerc.usr  file from "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData\" to "D: \Eagle_Data"
    • I rename it "My_eaglerc.usr"
    • I edit eaglerc.usr file (in "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData\") : in this file there will be only 2 lines :
      • Home.dir= "D: \Eagle_Data"
      • User.Eaglerc.file = "$HOME/My_eaglerc.usr"
  • On linux PC:
    • I copy the .eaglerc  file from "~/" to "~/Eagle_Data"
    • I rename it "My_eaglerc.usr"
    • II edit eaglerc.usr file (in "~/") : in this file there will be only 2 lines :
      • Home.dir= "~/Eagle_Data"
      • User.Eaglerc.file = "$HOME/My_eaglerc.usr"

 

That way, on both platform, the user preference file will be named "My_eaglerc.usr" and located in "Eagle_Data" directory. So with only one archive/backup/sync of  "Eagle_Data" directory, I can archive/backup/sync :

  • all user preferences
  • all the library, project etc... file that are located in $HOME. (if we use $HOME to configure the default directories for libraries, project .....)

even if it's from a platform to an other.

 

Guillaume Barrey.

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube