"New document" option not available in context menu if Nautilus/Files is run as root && $HOME not active user's home directory

Bug #1525639 reported by V字龍(Vdragon)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Invalid
Low
Unassigned

Bug Description

## Bug Reproduce Steps ##
1. Run Nautilus/Files using `gksudo nautilus` or `xhost +SI:localuser:root; sudo --set-home nautilus` (the --set-home or -H command argument is required due to bug #1373495 not fixed)
2. Try to create new document by launching the context menu by right-clicking on the blank part of content view

## Possibly related console warnings ##
```
** (nautilus:4459): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:4459): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

```

## Note ##
You can't reproduce the bug by directly running `sudo nautilus` command in Ubuntu if you don't workaround bug #1373495 manually in advance.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nautilus 1:3.10.1-0ubuntu9.11 [modified: usr/share/applications/nautilus.desktop]
ProcVersionSignature: Ubuntu 3.13.0-71.114-generic 3.13.11-ckt29
Uname: Linux 3.13.0-71-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: i386
CurrentDesktop: Unity
Date: Sun Dec 13 19:09:38 2015
GsettingsChanges:
 b'org.gnome.nautilus.list-view' b'use-tree-view' b'true'
 b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'date_modified', 'date_accessed', 'owner', 'group', 'permissions', 'mime_type', 'where', 'RabbitVCS::age_column', 'RabbitVCS::author_column', 'RabbitVCS::revision_column', 'RabbitVCS::status_column']"
InstallationDate: Installed on 2015-10-02 (71 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
V字龍(Vdragon) (vdragon) wrote :
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks but running nautilus (or other desktop interface) with sudo is not recommended nor supported for security reasons

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: New → Invalid
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.