RecentInfo.getShortName

string getShortName()

Computes a valid UTF-8 string that can be used as the name of the item in a menu or list. For example, calling this function on an item that refers to “file:///foo/bar.txt” will yield “bar.txt”.

Returns

A newly-allocated string in UTF-8 encoding

free it with [glib.global.gfree]