尝试找出 Unity 的问题所在,然后我执行了以下操作:
mv backup_local/ .local/share/applications/
而不是mv backup_local/*.desktop .local/share/applications/
。我该如何修复此问题?
答案1
您所做的就是将backup_local/
目录移动到.local/share/applications
。就像我在这个小演示中所做的一样:
xieerqi:$ ls TESTDIR
testfile
xieerqi:$ mkdir bin/ANOTHERDIR
xieerqi:$ touch bin/ANOTHERDIR/testfile2
xieerqi:$ mv TESTDIR/ bin/ANOTHERDIR/
xieerqi:$ ls bin/ANOTHERDIR
TESTDIR/ testfile2
xieerqi:$ ls bin/ANOTHERDIR/TESTDIR
testfile
要撤消该操作,只需运行mv .local/share/applications/backup_local/ backup_local/
与...一样
xieerqi:$ mv bin/ANOTHERDIR/TESTDIR TESTDIR
xieerqi:$ ls -ld TESTDIR
drwxrwxr-x 2 xieerqi xieerqi 4096 11月 5 00:14 TESTDIR/
xieerqi:$ ls -l TESTDIR/
total 0
-rw-rw-r-- 1 xieerqi xieerqi 0 11月 5 00:14 testfile
xieerqi:$