Announcement

Collapse
No announcement yet.

sudo firefox fails

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sudo firefox fails

    In order to install global extensions in Firefox, it must load with the ability to alter its install folder - that is, it must be run as root.

    In Konsole
    Code:
    jordan@JordanMacdonald-Laptop:~$ sudo firefox
    Password:
    You should really not run firefox through sudo WITHOUT the -H option.
    Anyway, I'll do as if you did use the -H option.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    
    (firefox-bin:10216): Gtk-WARNING **: cannot open display:
    jordan@JordanMacdonald-Laptop:~$
    No windows appear outside the Konsole during this. The result is the same whether Firefox is already running or not. The result is the same, less the two relevant lines, if I run with the -H parameter.

    I am not sure if this belongs here, on the Firefox support site, on the KDE support site, or on some as-yet-undiscovered Konsole support site. If I guessed wrong, please point me to the right one.

    #2
    Re: sudo firefox fails

    Code:
    kdesu firefox
    Launching a graphical application from the console, you use kdesu not sudo. sudo doesn't have rights to use the X window that the 'user' is using.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: sudo firefox fails

      Conversely you can do K->start application (or Alt+F2) and type kdesu firefox, give your password.
      HP Pavilion dv6 core i7 (Main)
      4 GB Ram
      Kubuntu 18.10

      Comment

      Working...
      X