Re: f16 error on starting emacs from root as "su -"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 03, 2012 at 12:37:57PM -0700, jackson byers wrote:
> f16 error on starting emacs from  root as "su -"
> 
> [root@f16a9 ~]# emacs test.sudash &
> [1] 2042

[...]

> [1]+  Stopped                 emacs test.sudash
> [root@f16a9 ~]#

Disclaimer: I'm not entirely sure about what I write below.

Emacs in Fedora is compiled with D-BUS support, when started as above
the necessary environment variables are missing and Emacs tries to start
in -nw mode; however since you put it in the background, it gets
stopped.  If you were to type `fg' next, you would see Emacs in -nw mode
in the terminal.

> 
> If I go to root as "su"  [no dash]
> then I do get an emacs window,
> although with an annoying error message:
> [root@f16a9 byers]# emacs test.sunodash &
> [1] 2071
> [root@f16a9 byers]#

When started like this, although $UID is 0, the $USER is still you.
Similarly other environment variables like the DBUS session id is
inherited which allows the Emacs gui to start up.

When working as root, I would recommend using emacs -nw.  If you really
want to have a gui, you can try using sudo with tramp.

HTH

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux