numixproject / numix-folders

Alternate folders for use with our base icon theme.
GNU General Public License v3.0
151 stars 26 forks source link

GUI sudo doesn't work on Ubuntu 20.04 #200

Open stephanlamoureux opened 3 years ago

stephanlamoureux commented 3 years ago

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 commented 3 years ago

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

stephanlamoureux commented 3 years ago

I tried doing it both ways.

palob commented 3 years ago

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

palob commented 3 years ago

How did you install your Numix theme?

stephanlamoureux commented 3 years ago

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 commented 3 years ago

gtk-update-icon-cache did not help either

palob commented 3 years ago

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

palob commented 3 years ago

Could you please try some other colours/folder styles?

palob commented 3 years ago

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

stephanlamoureux commented 3 years ago

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

Foggalong commented 3 years ago

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,