Subtle variation, but also occurs when you sudo su and then try and run gedit.
** Tags added: trusty -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1225281 Title: XDG_RUNTIME_DIR not set in the environment. Status in “gedit” package in Ubuntu: Confirmed Bug description: into a terminal, when i run "sudo gedit ....." i get : error: XDG_RUNTIME_DIR not set in the environment. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: gedit 3.8.3-0ubuntu3 ProcVersionSignature: Ubuntu 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic i686 NonfreeKernelModules: nvidia ApportVersion: 2.12.1-0ubuntu4 Architecture: i386 Date: Sat Sep 14 05:16:06 2013 MarkForUpload: True SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1225281/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp