Jawaban globot berlaku untuk KDE 4, dan pertanyaan ini ditulis untuk KDE 4, tetapi sekarang setelah ada KDE Plasma 5, beberapa jalur telah berubah.
Jika Anda mengalami masalah ini pada KDE Plasma 5, Anda harus menghapus baris yang dimulai dengan MenuBar=
file ini:~/.config/ksysguardrc
Berikut ini adalah perintah satu-baris yang dapat mengembalikan bilah menu KSysGuard di KDE Plasma 5:
sed -i '/^MenuBar=/d' ~/.config/ksysguardrc
Ini adalah perintah untuk menjalankan untuk mengembalikan bilah menu KSysGuard di KDE 4:
sed -i '/^MenuBar=/d' ~/.kde/share/config/ksysguardrc
Penjelasan
Saya secara surut menentukan bahwa jawaban globot benar dengan menemukan cadangan file konfigurasi ~/.kde/share/config/ksysguardrc
yang saya buat pada 26 Juli 2012 pukul 19.14 CDT.
Inilah isi lengkap file itu:
State=AAAA/wAAAAD9AAAAAAAAAyAAAAIyAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgAAAAAA/////wAAAAAAAAAA
[DownloadDialog Settings]
Height 1080=400
Width 1920=700
[MainWindow]
CommandList=
HostList=
MenuBar=Disabled
SelectedSheets[$e]=ProcessTable.sgrd,SystemLoad2.sgrd
SplitterSizeList=472,325
State=AAAA/wAAAAD9AAAAAAAAAyAAAAJEAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgAAAAAA/////wAAAAAAAAAA
ToolBarsMovable=Disabled
currentSheet=1
isMinimized=false
Tepat seperti yang diharapkan, MenuBar
diatur ke Disabled
, yang menonaktifkan bilah menu di KSysGuard di KDE 4.
~/.kde/share/config/ksysguardrc
tidak digunakan di KDE Plasma 5, jadi untuk menemukan lokasi baru file konfigurasi, saya menggunakan strace
:
deltik@workstation [~]# sudo strace -vvvffts1000 ksysguard 2>&1 | grep ksysguardrc
[pid 5534] 23:32:27 stat("/home/deltik/.config/ksysguardrc", <unfinished ...>
[pid 5534] 23:32:27 lstat("/home/deltik/.config/ksysguardrc", <unfinished ...>
[pid 5534] 23:32:27 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:27 access("/home/deltik/.config/ksysguardrc", W_OK) = 0
[pid 5534] 23:32:27 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:27 stat("/etc/xdg/ksysguardrc", 0x7fffe011c4a0) = -1 ENOENT (No such file or directory)
[pid 5534] 23:32:27 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:27 open("/home/deltik/.config/ksysguardrc", O_RDONLY|O_CLOEXEC) = 9
[pid 5534] 23:32:27 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:27 access("/home/deltik/.config/ksysguardrc", W_OK) = 0
[pid 5534] 23:32:30 open("/home/deltik/.config/ksysguardrc.lock", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0644) = 14
[pid 5534] 23:32:30 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:30 open("/home/deltik/.config/ksysguardrc", O_RDONLY|O_CLOEXEC) = 17
[pid 5534] 23:32:30 stat("/home/deltik/.config/ksysguardrc", {st_dev=makedev(252, 1), st_ino=1368016, st_mode=S_IFREG|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=8, st_size=302, st_atime=2015/07/05-23:26:42, st_mtime=2015/07/05-23:26:22, st_ctime=2015/07/05-23:26:22}) = 0
[pid 5534] 23:32:30 open("/home/deltik/.config/ksysguardrc", O_WRONLY|O_TRUNC) = 17
[pid 5534] 23:32:30 unlink("/home/deltik/.config/ksysguardrc.lock") = 0
^C
Output di atas menunjukkan bahwa ksysguard
mencoba membaca konfigurasi dari file ~/.config/ksysguardrc
.