一不小心把当前用户的桌面文件夹“/home/wenjianbao/桌面”删了,导致系统把“/home/wenjianbao”当成桌面文件夹.结果,桌面上全是乱七八糟的文件/文件夹. 查看了下网络资料,可以通过修改 -/.config/user-dirs.dirs 中的 XDG_DESKTOP_DIR 来重新指定“桌面文件夹”: # This file is written by xdg-user-dirs-update # If you want to change or add directo
sudo vim ~/.bashrc #在最后添加如下内容,注意,由于我的系统是中文版本,所以文件夹名称为“桌面”,如果为英文版的,那么需要更改为“Desktop” if [[ $PWD == $(realpath ~) ]]; then cd ~/桌面/ fi 通过以上方法设置后,桌面右键自动进入桌面文件夹,且使用[Ctrl]+[Alt]+[T]快捷键也会自动进入桌面文件夹. 参考: https://askubuntu.com/questions/808829/how-can-i-open-a
'显示打开文件夹对话框 With Application.FileDialog(msoFileDialogFolderPicker) .Show Then Exit Sub '未选择文件夹 strFolder = .SelectedItems() End With '获取文件夹中的所有文件列表 varFileList = fcnGetFileList(strFolder) If Not IsArray(varFileList) Then MsgBox "未找到文件", vbInform