unable to run nautilus via compiz commands (custom keyboard bindings)

Bug #326913 reported by madneon
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: compiz

I can't manage to run nautilus from CompizConfig commands.
Please note that I tried different key combinations. I also tried to run (with no success) nautilus from script, something like:

#!/bin/bash
/usr/bin/nautilus &

Trying to run command: "nautilus > ~/test.txt" creates 0-byte file.
The only way I manage to open a home folder (which was my goal of setting key shortcut) is to run command: "gnome-open ~".

System info:
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy compiz
compiz:
  Installed: 1:0.7.8-0ubuntu4.1
  Candidate: 1:0.7.8-0ubuntu4.1

$ uname -a
Linux madneon 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Martin Erik Werner (arand) wrote :

This keeps getting more odd the more you poke into it:
sudo -u mw nautilus #works
gksu nautilus #works (albeit as root)
gksu -u mw #doesn't work, but works in console

So might this have something to do with compiz launching as wrong user? Or even a bug in gksu instead?

Revision history for this message
Martin Erik Werner (arand) wrote :

Just to point out, the current user is "mw" in above commands

Revision history for this message
dzlatkov (dzlatkov) wrote :

I got this to work by using the following command:

nautilus --browser ~

Don't forget the ~ (tilde) in the end.

Also remember the compiz plugin to the keyboard shortcuts is only a gconf front-end. You can start up gconf and go under apps/metacity and manually edit shortcuts to your liking.

Changed in compiz (Ubuntu):
importance: Undecided → Low
status: New → Invalid
Revision history for this message
Hery Atmadja (heryatmadja) wrote :

The most important thing to make it work is actually the specification of starting directory (e.g., ~ or ~/Documents) to be opened when Nautilus is run, not the use of --browser as mentioned by dzlatkov (https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/326913/comments/3).

Revision history for this message
Travis Watkins (amaranth) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Karmic Koala. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/. Thanks again and we appreciate your help.

I am unable to reproduce this in karmic (note you have to enable the commands plugin as the settings are in there now). I can set a command to 'nautilus' and it'll open a window with my home folder.

Changed in compiz (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Sebastian Thürrschmidt (thuerrschmidt) wrote :

Hery is right, specifying the directory to open in Nautilus makes all the difference. Each of the following commands, when associated with a custom Metacity/Compiz keyboard shortcut, will show my home directory in Nautilus:

nautilus ~
nautilus .
nautilus $HOME

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for compiz (Ubuntu) because there has been no activity for 60 days.]

Changed in compiz (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.