【Java】获取当前操作系统桌面路径

//当前用户桌面

File desktopDir = FileSystemView.getFileSystemView() .getHomeDirectory();

String desktopPath = desktopDir.getAbsolutePath();

原文地址:https://www.cnblogs.com/zwqh/p/6693915.html