You are not logged in.
Hi all!
I've noticed strange thng about compiz: it runs from /, not from ~/
If I launch gnome-terminal with compiz keybinding, it opens in /
If I type "nautilus ." in bashrun, launched with compiz keybinding, then nautilus opens in /
Everything launches correclty in ~/ when using metacity.
Where can I find compiz default dir?
Offline
how do you launch compiz?
Offline
nope, it looks more like gnome-settings-daemon problem
Anything, that is launched by gnome-settings-daemon custom keybinding appears to have / as current dir. And it can not exec commands like "cd && bashrun"
I launched compiz from bashrun, so it inherited the dir.
Any thoughts about how to fix g-s-d?
launching g-s-d manually from ~/ does not help.
Last edited by Psycho_zs (2010-05-25 03:24:45)
Offline
yep. Looks like the "keyboard shortcuts" in gnome works from /
However if you use compiz, you can use the "commands" plugins to run commands..
(This assuming you can launch compiz correctly)
I launch fusion-icon from gnome session startup programs, and have no issue with its path.
Offline
IMHO, gnome shouldn't do that. However, to work around this for bashrun, simply add "cd $HOME" at the end of .config/bashrun/rc. Then applications started from bashrun should inherit its cwd.
Offline
I remember bumping into same thing in ubuntu, so I'd better post a bug about g-s-d upstream...
https://bugzilla.gnome.org/show_bug.cgi?id=619631
Offline
I just took a look at the source of gnome-settings-daemon and found this in main.c:
static void
daemon_detach (void)
{
...
/* get outta the way */
chdir ("/");
}
So they're doing it on purpose, it seems. I don't use gnome, but I guess commenting out that line won't hurt. Maybe there's a reason they're doing it, though.
Offline
From the ubuntu bugzilla thread: https://bugs.launchpad.net/ubuntu/+bug/373111
Here's a workaround: Using gconf-editor and editing the run_command_* and command_* in /apps/metacity/global_keybindings and /apps/metacity/keybinding_commands, respectively. Keyboard shortcuts created this way will start the applications with the correct environment.
Offline