.java in my home directory

Oxygen general issues.
Zearin
Posts: 107
Joined: Mon Jul 30, 2007 11:31 pm
Location: College Park, MD, United States

.java in my home directory

Post by Zearin »

I'm running Oxygen 12.2 on OS X 10.6.

Questions
I noticed that there is a .java in my home directory with just one file inside: .com.oxygenxml.rk . I was wondering…
  • what is the purpose of this file?
  • is it from an older version of Oxygen? (I've been using it since around…version 10, I believe, but I'm not 100% sure)
Motivation
I ask because I’m trying to keep clutter in my home directory to a minimum. To do this I have moved relevant dotfiles under ~/.config/ (which is part of the XDG Base Directory Specification).

Follow-Up
If it turns out the file is necessary, could you put in a request to add support for the XDG Base Directory Spec? Doing so is trivial, and amounts to the following pseudocode:

Code: Select all


if ($XDG_CONFIG_HOME is defined) 
DOTFILE_PATH=$XDG_CONFIG_HOME/java/com.oxygenxml.rk
else
DOTFILE_PATH=~/.java/.com.oxygenxml.rk
-- Zearin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: .java in my home directory

Post by sorin_ristache »

Hello,

No Oxygen version ever created a .java directory on disk. Oxygen creates only the .com.oxygenxml.editor or .com.oxygenxml.author directory in the Library/Preferences subdirectory on the home directory of the current OS X user and stores there the user preferences. Older versions created that folder in the user home folder, but it always had this name, that is .com.oxygenxml.editor or .com.oxygenxml.author.

Some temporary files may also be created in the temporary directory of the current user (the value of the java.io.tmpdir property), but a .java directory is never created.


Regards,
Sorin
Zearin
Posts: 107
Joined: Mon Jul 30, 2007 11:31 pm
Location: College Park, MD, United States

Re: .java in my home directory

Post by Zearin »

“Bye-bye, .java!”

Thanks. :)
-- Zearin
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: .java in my home directory

Post by adrian »

Zearin,

Actually Oxygen creates and needs that file(~/.java/.com.oxygenxml.rk) on Linux and Mac. The file contains a simple UUID that's used for identifying the user between Oxygen sessions.

Unfortunately the file cannot be relocated, its path is hard-coded into the user's home folder.

Anyway, the file will be recreated the next time you start Oxygen. Leave it be to avoid any trouble with the persistence of some options.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Zearin
Posts: 107
Joined: Mon Jul 30, 2007 11:31 pm
Location: College Park, MD, United States

Re: .java in my home directory

Post by Zearin »

Crap! :oops:


Follow-Up Questions
  • Might this file be relocatable in a future Oxygen update?
  • For all platforms where this file is necessary, might it be possible to check for locations in the FreeDesktop.org Standards Specifications? (Specifically, the Base Directory Spec seems the document with the most potential )
  • For OS X, might this file’s role be assumed by a more “OS X”-like location (somewhere in ~/Library )?
-- Zearin
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: .java in my home directory

Post by adrian »

I've added a task to our issue tracking tool to analyze what it would take to move this file to a different location. I've mentioned your concerns. We'll let you know as soon as a decision is made.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Zearin
Posts: 107
Joined: Mon Jul 30, 2007 11:31 pm
Location: College Park, MD, United States

Re: .java in my home directory

Post by Zearin »

Thanks—you are the best! :)
-- Zearin
Post Reply