New answers tagged

1

I have a solution for GTK applications, and a solution for dolphin. I've never figured out how to fix this for non-GTK applications (e.g., LibreOffice). For GTK: Fire up dconf-editor. Navigate to org/gtk/settings/file-chooser. De-select the box next to sort-directories-first. Close the dialog. For dolphin: Navigate to Control / Sort by >. De-select "...


0

All the dependencies required for building WebKitGTK+3 : gst-plugins-base-1.6.3 GTK+-2.24.29 or GTK+-3.18.7 ICU-56.1 libgudev-230 libsecret-0.18.4 libsoup-2.52.2 libwebp-0.5.0 Mesa-11.1.2 Ruby-2.3.0 SQLite-3.11.0 Which-2.21


0

Take a look at https://github.com/ubuntu/snappy-playpen/blob/master/galculator/snapcraft.yaml - it's actually quite straight-forward: The relevant bit is parts: galculator: source: https://github.com/galculator/galculator.git plugin: autotools install-via: prefix build-packages: - flex - gettext - intltool - libgtk-...


2

You can enable that by creating new file sudo nano /etc/profile.d/csd.sh That contains export GTK_CSD=1 export XDG_CURRENT_DESKTOP=Unity:GNOME #export GTK_THEME=Ambiance #export GTK_THEME=Adwaita:dark Logout/Login Reference: for the new colon format Unity:GNOME. https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1554878 Related question: What is ...


2

Conky changed the conkyrc format to lua in the recent versions, the original seamod (and 99% of all other conkys out there) still have the old format. Thankfully, user maxiwell on Github has already converted the popular seamod theme for Ubuntu 16.04. Since askubuntu/Stackoverflow prefers source instead of links, here the conkyrc.lua: ----------------------...


0

You can recompile gnome-terminal with --enable-debug passed to the ./configure step, and then it'll have a Help -> Inspector menu entry which works properly. (I'm not sure how to inspect gnome-terminal as it is shipped by Ubuntu, or whether it is possible at all.)


3

For specific GTK3 apps Edit their .desktop file (Nautilus' is located at /usr/share/applications/nautilus.desktop) And add env XDG_CURRENT_DESKTOP=GNOME just after each Exec= line. For example, nautilus.desktop's Exec= line(s) (It has two, one for opening a new window) will change from... Exec=nautilus --new-window %U [… Some other lines, skipping …] Exec=...


0

@Timo above described the way of getting it in GNOME and Unity, here is how in Xfce. import subprocess xfce_wall_cmd = subprocess.Popen('xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image', shell=True, stdout=subprocess.PIPE) xfce_wall, xfce_wall_errs = xfce_wall_cmd.communicate() xfce_wall = xfce_wall.decode('utf-8')....


1

This should do it: #!/usr/bin/env python3 # -*- coding: utf-8 -*- import random from PIL import Image from gi.repository import Gio def get_wallpaper_uri(): settings = Gio.Settings.new("org.gnome.desktop.background") uri = settings.get_string("picture-uri") return uri def uri_to_path(uri): return uri.lstrip("file:") def ...



Top 50 recent answers are included