4. Other Options
Prev | Chapter 9. Preferences | Next

## 4. Other Options

Inside ~/.ejourn there are three files which control all the preferences for the whole program:

### 4.1. ejourn.conf

The main file is ejourn.conf. This file is a standard config file which controls program wide changes. Upon opening it you'll see something like this:

    #Do not add comments, they will be lost immediately after closing the program.
    #You may change the values for each variable, and it will be remembered
    confPath=/home/chris//.ejourn/ejourn.conf
    path=/home/chris//.ejourn/journal0
    encryption_method=AES
    THEME=default
    height=428
    width=501
    tree_divider=178

Most of these options aren't actually very helpful.

tree_divider is the size of the pane on your edit tab. This is remembered from close to open of ejourn, so you don't need to adjust it. Height and width track the size of eJourn's window, these also are remembered.

encryption_method is actually largely ignored and stored somewhere else.

path is also ignored and stored other places. However, it is used by the program to tell what journal was the last one you used. So, upon opening, this is how ejourn knows which journal you last edited.

confPath may or may not work to use a different config file. I think not is most correct.

THEME is used to tell which theme to use. If you've placed an image theme in ~/.ejourn you may use the name of the subdirectory it's in as THEME and you'll see that image theme.

Be careful when editing this file. If you do it while eJourn is open it will delete all you changes. So make sure eJourn is closed before editing this.

#### 4.1.1. Statusbar Autohide

eJourn allows you to autohide the statusbar. However, since this is not compatible with HIG's in general it won't ever be an option you'll find in a graphical pane. So it's relegated to your ejourn.conf file. Simply add this option to enable auto-hiding for the statusbar:

STATUSBAR_HIDE=1

If you do this:

STATUSBAR_HIDE=0

It will no longer autohide, or you may also not specify the option and it won't autohide (this is the default).

This option is new in version 0.4.2.

#### 4.1.2. Skinning

Presently eJourn allows you to skin it via the normal gtk themes (the difference being you can pick one just for eJourn).

This is only, currently, allowed through ejourn.conf, no gui controls for it yet. But, of course, there are some caveats. Here's what you need to do.

1.) Open ~/.ejourn/ejourn.conf with a text editor

2.) Add a line like this one:

GTKTHEME=~/.themes/THEMENAME/gtk-2.0/gtkrc

It's a full path to your theme file that you want to use. If this variable isn't present eJourn will just use the regular gtk skin, so this is OPTIONAL skinning. I hate mandatory skinning too.

Now, the gotcha's:

If you use Gnome or Xfce you'll be surprised to see some strange concoction of a theme present on eJourn when doing this. Why? Both of these environments try and force their own themes on gtk apps, improperly (not via rc files). So, how to shut them up and go on with your life:

1.) Install either switch2, or gtk-chtheme. gtk-chtheme is a bit nicer in my opinion. These are proper theme switchers which use ~/.gtkrc-2.0 to adjust your gtk theme. They do not require program restarts to apply themes though.

2.) For Gnome: Open gconf-editor, and go to /desktop/gnome/interface. Scroll down to gtk_theme, and just make it an empty field. For xfce, I recommend setting it to Raleigh or Redmond theme; these should provide minimal theme interferance.

3.) Always use gtk-chtheme or switch2 to change your gtk themes. Never the Gnome program or the xfce program. The program in kcontrol should be fine too. But it requires program restarts.

4.) Changing themes while eJourn is running will probably end your skinned look. Restart it.

### 4.2. plugins.lst

This file is simply a list of the plugins you are currently loading:

    mult_journ.so
    toolbar.so

This file keeps one name per line and each line as an endline at the end. You can edit this by hand, but be careful.

### 4.3. journals.conf

    <journals>
    	<how many>
    		3
    	</how many>
    	<journal num=2>
    		<settings>
    			<encryption>
    				AES
    			</encryption>
    			<path>
    				/home/chris//.ejourn/journal2
    			</path>

    		</settings>
    		<name>
    			Personal3
    		</name>

    	</journal num=2>
    	<journal num=1>
    		<settings>
    			<encryption>
    				AES
    			</encryption>
    			<path>
    				/home/chris//.ejourn/journal1
    			</path>

    		</settings>
    		<name>
    			Personal2
    		</name>

    	</journal num=1>
    	<journal num=0>
    		<settings>
    			<encryption>
    				AES
    			</encryption>
    			<path>
    				/home/chris//.ejourn/journal0
    			</path>

    		</settings>
    		<name>
    			Personal
    		</name>

    	</journal num=0>
    </journals>

This file is _not_ xml.

This is basically a listing of your journals, there name, their location, and whether or not to encrypt them. You can edit this by hand, but you really shouldn't have any need to.

Prev | Up | Next
3. External Programs | Home | Chapter 10. Plugins