This file is indexed.

/usr/share/session-migration/scripts/nautilus-unity-launcher-icon.py is in nautilus 1:3.18.4.is.3.14.3-0ubuntu4.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (C) 2013 Canonical

from gi.repository import Gio
import os,sys

if "com.canonical.Unity.Launcher" not in Gio.Settings.list_schemas():
    print("No unity schemas found, no migration needed")
    sys.exit(0)

gsettings=Gio.Settings(schema="com.canonical.Unity.Launcher", path="/com/canonical/unity/launcher/")
launcher_list = gsettings.get_strv("favorites")

# Unity used nautilus-home.desktop but we are migrating to use the standard nautilus.desktop instead
try:
    idx=launcher_list.index("application://nautilus.desktop")
    launcher_list[idx]="application://org.gnome.Nautilus.desktop"
except ValueError:
    pass
# gsettings doesn't work directly, the key is somewhat reverted. Work one level under then: dconf!
from subprocess import Popen, PIPE, STDOUT
p = Popen(['dconf', 'load', '/com/canonical/unity/launcher/'], stdout=PIPE, stdin=PIPE, stderr=STDOUT)
p.communicate(input="[/]\nfavorites={}".format(launcher_list).encode('utf-8'))