File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,14 @@ impl<'a> DesktopEntry<'a> {
160
160
self . desktop_entry ( "Exec" )
161
161
}
162
162
163
+ pub fn flatpak ( & ' a self ) -> Option < & ' a str > {
164
+ self . desktop_entry ( "X-Flatpak" )
165
+ }
166
+
167
+ pub fn generic_name ( & ' a self , locale : Option < & str > ) -> Option < Cow < ' a , str > > {
168
+ self . desktop_entry_localized ( "GenericName" , locale)
169
+ }
170
+
163
171
pub fn icon ( & ' a self ) -> Option < & ' a str > {
164
172
self . desktop_entry ( "Icon" )
165
173
}
@@ -196,6 +204,10 @@ impl<'a> DesktopEntry<'a> {
196
204
self . desktop_entry_bool ( "StartupNotify" )
197
205
}
198
206
207
+ pub fn startup_wm_class ( & ' a self ) -> Option < & ' a str > {
208
+ self . desktop_entry ( "StartupWMClass" )
209
+ }
210
+
199
211
pub fn terminal ( & ' a self ) -> bool {
200
212
self . desktop_entry_bool ( "Terminal" )
201
213
}
You can’t perform that action at this time.
0 commit comments