/usr/share/pyshared/SCRIBES/ForkScribesMetadata.py is in scribes 0.4~r543-2.
This file is owned by root:root, with mode 0o644.
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 | from Utils import open_database
from os.path import join
basepath = join("Preferences", "ForkScribes.gdb")
def get_value():
try:
value = True
database = open_database(basepath, "r")
value = database["fork"]
except KeyError:
pass
finally:
database.close()
return value
def set_value(fork):
try:
database = open_database(basepath, "w")
database["fork"] = fork
finally:
database.close()
return
|