Fix bad filename + more verbose output

parent b7a804e9
......@@ -27,7 +27,7 @@ def parse_desktop(desktop):
def add_to_handymenu(user, cmd, category):
path = '/etc/handymenu/handymenu-{}-default.yaml'.format(user)
path = '/etc/handymenu/handymenu-{}.default.yaml'.format(user)
subprocess.run(['sed', '-i', '-e', 's/!!python\/str//g', path])
print(path)
with open(path) as stream:
......@@ -65,7 +65,9 @@ if __name__ == '__main__':
args = parser.parse_args()
print("Retrieving desktop file")
desktop = find_desktop(args.app[0])
print("parsing desktop info")
values = parse_desktop(desktop)
links = {
'Exec': 'cmd',
......@@ -83,4 +85,5 @@ if __name__ == '__main__':
pass
for user in args.users:
print("Updating handymenu for {}".format(user))
add_to_handymenu(user, cmd, args.category[0])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment