Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI sudo doesn't work on Ubuntu 20.04 #200

Open
stephanlamoureux opened this issue Mar 4, 2021 · 11 comments
Open

GUI sudo doesn't work on Ubuntu 20.04 #200

stephanlamoureux opened this issue Mar 4, 2021 · 11 comments
Labels

Comments

@stephanlamoureux
Copy link

There is no repo version for Ubuntu focal so I downloaded the zip and it seemed like everything was normal. I changed the folder color and a notification popped up saying numix-folders was applying...but nothing happens.

@palob
Copy link
Member

palob commented Mar 4, 2021

Did you run the GUI or did you apply the changes via CLI?

@stephanlamoureux
Copy link
Author

I tried doing it both ways.

@palob
Copy link
Member

palob commented Mar 4, 2021

Running as root or using sudo?
Does running gtk-update-icon-cache help?

@palob
Copy link
Member

palob commented Mar 4, 2021

How did you install your Numix theme?

@stephanlamoureux
Copy link
Author

I was using sudo and I installed the theme through the ppa. I’ll try running that gtk command when I get home thanks

@stephanlamoureux
Copy link
Author

gtk-update-icon-cache did not help either

@palob palob added the bug label Mar 4, 2021
@palob
Copy link
Member

palob commented Mar 4, 2021

Hmm, so far I'm at a loss as to why it wouldn't work.

@palob
Copy link
Member

palob commented Mar 4, 2021

Could you please try some other colours/folder styles?

@palob
Copy link
Member

palob commented Mar 4, 2021

In case this wasn't clear: by CLI I meant running ./numix-folders -t instead of just invoking the GUI from the console.

@stephanlamoureux
Copy link
Author

stephanlamoureux commented Mar 5, 2021

Ok so I was using the 'Run in terminal' option from launching the executable, but using -t got it to work for me. Thanks!

@stephanlamoureux stephanlamoureux changed the title Does not work on Mint 20 GUI Does not work on Mint 20.1 Mar 10, 2021
@stephanlamoureux stephanlamoureux changed the title GUI Does not work on Mint 20.1 GUI Does not work on Mint 20.1 (Ubuntu Focal) Mar 10, 2021
@Foggalong Foggalong changed the title GUI Does not work on Mint 20.1 (Ubuntu Focal) GUI sudo doesn't work on Ubuntu 20.04 Apr 14, 2021
@Foggalong
Copy link
Contributor

Yeah there seems to be a bug with the sudo pop-up not actually authenticating here. Running either sudo ./numix-folders with or without the -t flag works from the terminal, but just ./numix-folders (or clicking the executable) doesn't change anything.

When it's not working:

josh@migs:~/numix-folders$ ./numix-folders 
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(numix-folders:65702): Gtk-WARNING **: 04:04:07.786: cannot open display: 
/home/s1985194/numix-folders/gui/gui:129: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "type" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.win = Gtk.ApplicationWindow(Gtk.WindowType.TOPLEVEL, application=app)
/home/s1985194/numix-folders/gui/gui:134: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  self.win.set_wmclass("numix-folders", "Numix Folders")
/home/s1985194/numix-folders/gui/gui:214: DeprecationWarning: Gtk.ColorButton.set_color is deprecated
  self.colourbuttons[i].set_color(Gdk.color_parse(self.colour[i]))
/home/s1985194/numix-folders/gui/gui:223: DeprecationWarning: Gtk.Widget.modify_font is deprecated
  self.colourentries[i].modify_font(Pango.FontDescription('monospace'))
/home/s1985194/numix-folders/gui/gui:234: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  buttonok = Gtk.Button("_Apply", use_underline=True)
/home/s1985194/numix-folders/gui/gui:236: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  buttonclose = Gtk.Button("_Cancel", use_underline=True)
cp: target '/Numix/' is not a directory
find: ‘/Numix/*/actions/*custom*’: No such file or directory
find: ‘/Numix/*/places/*custom*’: No such file or directory
find: ‘/Numix/*/actions’: No such file or directory
find: ‘/Numix/*/places’: No such file or directory
chown: cannot access '/Numix/': No such file or directory
gtk-update-icon-cache: No theme index file.
Folder change complete!

When it is working:

josh@migs:~/numix-folders$ sudo ./numix-folders
/home/s1985194/numix-folders/gui/gui:129: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "type" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.win = Gtk.ApplicationWindow(Gtk.WindowType.TOPLEVEL, application=app)
/home/s1985194/numix-folders/gui/gui:134: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  self.win.set_wmclass("numix-folders", "Numix Folders")
/home/s1985194/numix-folders/gui/gui:214: DeprecationWarning: Gtk.ColorButton.set_color is deprecated
  self.colourbuttons[i].set_color(Gdk.color_parse(self.colour[i]))
/home/s1985194/numix-folders/gui/gui:223: DeprecationWarning: Gtk.Widget.modify_font is deprecated
  self.colourentries[i].modify_font(Pango.FontDescription('monospace'))
/home/s1985194/numix-folders/gui/gui:234: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  buttonok = Gtk.Button("_Apply", use_underline=True)
/home/s1985194/numix-folders/gui/gui:236: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  buttonclose = Gtk.Button("_Cancel", use_underline=True)
/home/s1985194/numix-folders/gui/notification:26: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "parent, flags, message_type, buttons, message_format" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.MessageDialog(win, None, Gtk.MessageType.INFO,
/home/s1985194/numix-folders/gui/notification:26: PyGTKDeprecationWarning: The keyword(s) "message_format" have been deprecated in favor of "text" respectively. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  dialog = Gtk.MessageDialog(win, None, Gtk.MessageType.INFO,
gtk-update-icon-cache: Cache file created successfully.
gtk-update-icon-cache: Cache file created successfully.
Folder change complete!

There's clearly some generic interface bugs and info/complaints messages in there too,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants