mark folders better

This commit is contained in:
2019-01-30 12:41:58 +02:00
parent 47b3758dfa
commit 57033ab1aa

View File

@@ -182,6 +182,8 @@ class entry_collection:
launcher = "menu"
if row[1][-1] == '/' and os.path.isdir(row[1]):
launcher = "dir"
if row[0][-1] != "/":
row[0] += "/"
self.entries.append(
launch_item(
command = row[1],
@@ -213,7 +215,7 @@ class entry_collection:
self.dirs.append(
launch_item(
command = d,
description = d,
description = d + "/",
launcher = "dir"
)
)