File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Plugins/Flow.Launcher.Plugin.BrowserBookmark Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -294,16 +294,22 @@ public static string MsixPlacesPath
294
294
{
295
295
var platformPath = Environment . GetFolderPath ( Environment . SpecialFolder . LocalApplicationData ) ;
296
296
var packagesPath = Path . Combine ( platformPath , "Packages" ) ;
297
-
298
- // Search for folder with Mozilla.Firefox prefix
299
- var firefoxPackageFolder = Directory . EnumerateDirectories ( packagesPath , "Mozilla.Firefox*" ,
300
- SearchOption . TopDirectoryOnly ) . FirstOrDefault ( ) ;
297
+ try
298
+ {
299
+ // Search for folder with Mozilla.Firefox prefix
300
+ var firefoxPackageFolder = Directory . EnumerateDirectories ( packagesPath , "Mozilla.Firefox*" ,
301
+ SearchOption . TopDirectoryOnly ) . FirstOrDefault ( ) ;
301
302
302
- // Msix FireFox not installed
303
- if ( firefoxPackageFolder == null ) return string . Empty ;
303
+ // Msix FireFox not installed
304
+ if ( firefoxPackageFolder == null ) return string . Empty ;
304
305
305
- var profileFolderPath = Path . Combine ( firefoxPackageFolder , @"LocalCache\Roaming\Mozilla\Firefox" ) ;
306
- return GetProfileIniPath ( profileFolderPath ) ;
306
+ var profileFolderPath = Path . Combine ( firefoxPackageFolder , @"LocalCache\Roaming\Mozilla\Firefox" ) ;
307
+ return GetProfileIniPath ( profileFolderPath ) ;
308
+ }
309
+ catch
310
+ {
311
+ return string . Empty ;
312
+ }
307
313
}
308
314
}
309
315
You can’t perform that action at this time.
0 commit comments