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