Red Hat Bugzilla – Bug 842397
The '.local/share/' directory is not being created under '/root/' and virt-viewer errors
Last modified: 2013-12-12 12:55:17 EST
Description of problem:
The '.local/share/' directory is not being created under '/root/
When you start virt-viewer, there is an error message:
(remote-viewer:32593): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.OK7DGW': No such file or directory
I created the directory of '/root/.local/share/' and the error message is gone.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start virt-viewer in a terminal window.
The directory of '/root/.local/share/' is not being created.
The directory of '/root/.local/share/' is created.
I tried both build RHEL-7.0-20120711.2 and RHEL-7.0-20121120.1,when start virt-viewer and remote-viewer in terminal window,there is no such error as the bug describes,also I checked the directory,there is no /root/.local/share/.
(In reply to comment #2)
> I tried both build RHEL-7.0-20120711.2 and RHEL-7.0-20121120.1,when start
> virt-viewer and remote-viewer in terminal window,there is no such error as
> the bug describes,also I checked the directory,there is no
correct the info:
There is no such error for the above 2 build as the bug describes when start virt-viewer and remote-viewer.
For build RHEL-7.0-20120711.2,/root/.local/share/ exist.
For build RHEL-7.0-20121120.1,/root/.local/share/ doesn't exist
This would be up to gtk+ to create that directory if it does not exist already, virt-viewer is not directly trying to manipulate it.
GTK+ already creates that directory:
static gchar *
if (g_mkdir_with_parents (g_get_user_data_dir (), 0755) == -1)
int saved_errno = errno;
g_critical ("Unable to create user data directory '%s' for storing "
"the recently used files list: %s",
return g_build_filename (g_get_user_data_dir (),
You don't need to run virt-manager as root, anyway. Why are you doing that ?
I just tried with sudo gedit, and that did create /root/.local/share as expected.
I'll assume this is working now, unless you have specific reproduction instructions.