Re: set home directory
- From: David Stanaway <david stanaway net>
- To: gnumeric-list gnome org
- Subject: Re: set home directory
- Date: Mon, 24 Oct 2005 16:22:00 -0500
Looking at the current code, it looks like you can't.
It gets the directory to display in the open dialog from the current
workbook you are looking at, and the default "Book1" gets its name from
in my version (This will be slightly different than yours, but I am sure
it will work the same) from go_filename_to_uri which uses the current
working directory for the application.
I am not sure if gnumeric changes its working directory during its
startup, but one way you could change the default directory might be to
change the working directory in your shell before starting gnumeric, or
use a wrapper script that does that.
eg:
in /usr/local/bin/gnumeric-wrapper
---CUT---
#! /bin/sh
if [ -d ~/Documents ]; then cd ~/Documents; fi
exec /usr/bin/gnumeric
---PASTE---
Then make sure it is executable.
chmod 755 /usr/local/bin/gnumeric-wrapper
Then you can add a launcher that executes the
program /usr/local/bin/gnumeric-wrapper
This is pretty messy. Maybe you should wishlist this in the gnumeric
bugzilla so that the developers can add a preference for a default
directory for open/save. It might be best to put that in the goffice
library wishlist, as I imagine that is where it would be implemented.
On Mon, 2005-10-24 at 18:31 +0000, Al Lelopath wrote:
When I do a file -> open, it opens the folder /home/myusername/
I want to change that to a place where i go often, instead of having to
navigate to it every time.
From: David Stanaway <david stanaway net>
To: Al Lelopath <allelopath hotmail com>
CC: gnumeric-list gnome org
Subject: Re: set home directory
Date: Mon, 24 Oct 2005 11:48:56 -0500
Do you mean the home directory for your user account, or for a
particular program (EG: A default save directory)?
If you mean the home directory for your user account, that is as far as
I know system dependent, and to change it is not trivial (You will need
to for instance, move the home directory to the new location, and update
the system user account data).
This doesn't have much to do with Gnumeric as far as I can imagine?
Maybe it would help if you explained what you were trying to achieve by
changing the home directory.
On Mon, 2005-10-24 at 16:31 +0000, Al Lelopath wrote:
How do I set the home directory?
Using gnome 1.2.13
_______________________________________________
gnumeric-list mailing list
gnumeric-list gnome org
http://mail.gnome.org/mailman/listinfo/gnumeric-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]