GNOME – Restore default folder icons

Recently, my laptop battery got drained completely and the system shut down incorrectly. This resulted in my NTFS data drive not getting unmounted properly. The videos, music, pictures and documents folders in my NTFS drive are linked to the Home folder in my Fedora install. When I booted my system back up I was not able to access my music and videos. I figured, probably some issue with auto-mounting the NTFS drive at boot, so unmounted and remounted the drive and the issue was fixed. I rebooted once more to confirm and the auto-mounting was working. I had access to my music and videos again. But there was a different issue.

You know how the Documents, Music, Pictures and Videos folders all have specialized icons? Well, they were gone and were replaced with a generic folder icon. After looking around for some time, I got to the root cause. It turns out that my /home/sayak/.config/user-dirs.dirs had got corrupted. This is how the file is supposed to look like:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

In my case, the documents, music etc. directories were pointing to $HOME i.e. XDG_DOCUMENTS_DIR=”$HOME/”. Most likely, a result of the botched auto-mounting attempt from earlier.

To fix it, I just had to update the file to point to the correct locations. So, I deleted the file and executed the below command:


And, that fixed it.


F23 – Printing and Scanning

Recently, my parents bought this new HP Deskjet 1510 AIO for printing, scanning and photocopying stuff. I’ve never had a scanner before and the printer I used to have was a Samsung ML-1610(or something similar), which was very inconsistent in working with Linux distributions. It died long since. So, with this new deskjet, I thought I’d give it a try on my Fedora 23.

First up, as soon as I connected the printer to my PC, I got a helpful pop-up saying “Configuring your new Printer”. A few seconds later I got a message saying additional software needs to be installed and clicking on the pop-up opened up GNOME Software. But, alas, Software told me it could not find the needed software in the repositories. I was a bit bummed, but I though what the heck, lets give it a try anyway. So, I pulled up a document, put in a page in the printer and hit print. To my surprise, it worked flawlessly. So, was that Software bit misleading? Or was it looking for some specific software that it failed to find in the repos? Anyway, as long as it works I’m not complaining.

Next up, scanning. I wasn’t sure this would work as I had never tried it before from Linux. I pulled up the Activities overview and searched for “scan” to see if there was any scanner software installed. There wasn’t. But, in the results I saw Simple Scan available in the GNOME Software. How Nice! I clicked and it opened Software and started installing Simple Scan and was done in a couple of seconds. I launched Simple Scan, put the page I just printed into the device and hit scan. It worked perfectly, I scanned both sides of the page and saved into a pdf.

The whole process is so smooth and it just works! I didn’t have to go looking for drivers or install some extra software to configure the device. Just plug and play!

Until next time!

Fedora 23 and screen tearing

As I mentioned in my Fedora 23 review, I am very happy with this new release. So, I was a bit disappointed when I notice the issue with screen tearing. Now this is probably an issue with my particular set up and a lot of people may not run into this issue.

I have an Acer Aspire V5 with an integrated Intel HD 4400 and nVidia GT 750M and I use bumblebee for dynamic switching. So, by default the system runs on the Intel card. I noticed that when I move any window there is some tear. Naturally, I went on google looking for a fix for the issue. And I found this post on Ask Fedora. Basically the fix is to create the file /etc/X11/xorg.conf.d/20-intel.conf and have the below content in it:

# /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"

And then reboot! The issue should be fixed.