Skip to content

Commit

Permalink
Fixed a bug where dekstop-directory isn't set
Browse files Browse the repository at this point in the history
The program should make desktop-directory the proper ~/Desktop or ~/ directory if the value is 'null'. There was a bug where that just did not happen. Fixed that in this patch.
  • Loading branch information
DEM0NAssissan7 authored Jul 30, 2021
1 parent 6c322c4 commit 414ae05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions desktopIconsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function getDesktopDir() {
let desktopPath = Prefs.desktopSettings.get_string('desktop-directory');
if(desktopPath == 'null'){
desktopPath = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DESKTOP);
Prefs.desktopSettings.set_string('desktop-directory', desktopPath);
}
return Gio.File.new_for_commandline_arg(desktopPath);
}
Expand Down

0 comments on commit 414ae05

Please sign in to comment.