jEdit Community - Resources for users of the jEdit Text Editor
Portable jEdit
Submitted by Perry Johnson on Wednesday, 11 February, 2009 - 19:34
Having used jEdit for years, I wanted to make it available to my students. We use MacOS X and they all have USB drives. jEdit runs fine from the external drive of course, but it saves its settings by default in the user's home folder. My problem was that the Guest account gets purged on logout. I didn't want to create user accounts for every student or set up roaming accounts. I knew that it was possible to specify a custom settings folder with a command line switch but I needed a path relative to the jEdit app. I began with the MacOS X package downloaded from jEdit.org. After poking around in the info.plist (right-click jEdit, select Show Package Contents), I found a key for command-line arguments. I could not successfully feed a relative path. Setting WorkingDirectory to $APP_PACKAGE and adding -Duser.home=../ under VMOptions allows this to work. At this point I could feed an argument for a settings folder that sits alongside the jEdit app. I named my folder jEdit_settings. Here is the relevant section from my Info.plist file WorkingDirectory $APP_PACKAGE VMOptions -Xmx192M -Duser.home=../ Arguments -background -settings=jEdit_settings I've documented this on my website - http://perryjohnson.net/web/portable-jedit.html If there is a better way of doing this, I'd love to hear it. I won't say I've tried every text editor but it seems like I have. jEdit always wins the battle.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
That's really great informati
by elberry on Thu, 12/02/2009 - 21:19
That's really great information.

Thank you for posting this.

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300