You are here

Change "my documents"-path to USB

10 posts / 0 new
Last post
rasa
Offline
Last seen: 18 years 3 weeks ago
Joined: 2006-10-16 12:24
Change "my documents"-path to USB

Is it possible to change the "my document" path to a folder on my USB-drive?
Thanks for your great work,
Ralf

mattbiernat
Offline
Last seen: 18 years 1 week ago
Joined: 2006-10-06 13:52
yeah you can simply right

yeah you can simply right click on my documents and select target location.

rasa
Offline
Last seen: 18 years 3 weeks ago
Joined: 2006-10-16 12:24
my fault - wrong question

Thanks for your fast reply, but thats not the point I really want to know. My problem is that OOo portable sets its default "my document"-path on c:/documents&settings/user/... If I change the path like in "normal" OOo (Options/Paths) I can choose my USB-Drive for example f:/documents. If I connect to an other computer OOo tries to find the path, even if the USB-drive isn't f:/
Ralf

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 2 months ago
Joined: 2006-01-06 21:27
Ah

Probably not possible ATM, unless there is a variable in OO for the current drive. Otherwise, you need to make a launcher.
----
R McCue
Cube Games
People who didn't need people needed people around to know that they were
the kind of people who didn't need people.
(Maskerade)

"If you're not part of the solution, you're part of the precipitate."

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Doesn't Work

I tried setting a DOCUMENTS environment variable in a test launcher but OO ignores it.

Sometimes, the impossible can become possible, if you're awesome!

rasa
Offline
Last seen: 18 years 3 weeks ago
Joined: 2006-10-16 12:24
quite interesting

It's quite interesting, I thought the problem would be easy to solve. Until now I used a german version of OOo portable based on Johns Version incl. launcher (the splash screen seems to be older)
(http://www.office-center-epj.de/portable_usb_drive.htm).
In this Version the documents-path is always on the portable drive in the settings/user folder. Unfortunately in this version fonts in the "share" folder do not work. Probably someone can "combine" the launchers.
Ralf

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Ah

Actually, that's the REALLY old launcher that used %USERPROFILE%. That version doesn't work on lots of Windows 2000 computers, doesn't support Java and has lots of other issues and isn't recommended for use anymore.

Sometimes, the impossible can become possible, if you're awesome!

zikarus
Offline
Last seen: 13 years 2 months ago
Joined: 2006-10-10 16:32
Well rasa, as a german user

Well rasa, as a german user it may be time to switch over to the versions on this site:

http://www.ooodev.org

Under 'Projekte' you will find the link to OpenOfficePortable with all the up to date launchers of J.T. Haller (thx a lot man!). You will also find a large OO Portable PLUS Suite all in german Smile

Thalion72
Offline
Last seen: 17 years 8 months ago
Joined: 2006-10-23 04:17
What has been changed there

Hi,

for those who are packaging OOo portable, here is what (and why it) has been done with the version at http://www.ooodev.org .

In OOo 2.0.4 the paths handling has been completely changed. In most cases but two this is not visible for the End user.
The two cases (afaik) are: Documents (work) path and temp path.
From 2.0.4 on the default for those path is the system default of the user.

To set those paths back to the USB drive, we created a config file Paths.xcu in Data\settings\user\registry\data\org\openoffice\Office.

the file has the following content:

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Paths" oor:package="org.openoffice.Office">
 <node oor:name="Paths">
  <node oor:name="Temp">
   <prop oor:name="WritePath" oor:type="xs:string">
    <value>$(user)/../../../../temp</value>
   </prop>
  </node>
  <node oor:name="Work">
   <prop oor:name="WritePath" oor:type="xs:string">
    <value>$(user)/../../../../Dokumente</value>
   </prop>
  </node>
 </node>
</oor:component-data>

So you will get the temp and documents directories in the root of you portable drive.
Hope, this helps.

rasa
Offline
Last seen: 18 years 3 weeks ago
Joined: 2006-10-16 12:24
Thanks

It helps - an it works fine!! Thank you

Topic locked