let fcitx5state=system("fcitx5-remote") autocmd InsertLeave * :silentlet fcitx5state=system("fcitx5-remote")[0] | silent !fcitx5-remote -c" Disable the input method when exiting insert mode and save the state autocmd InsertEnter * :silentif fcitx5state == 2 | callsystem("fcitx5-remote -o") | endif
[Desktop Entry] Version=1.0 Type=Application Name=E-book viewer GenericName=Viewer for E-books Comment=Viewer for E-books in all the major formats TryExec=/opt/calibre/ebook-viewer Exec=/opt/calibre/ebook-viewer --detach %f Icon=calibre-viewer Categories=Office;Viewer; Keywords=epub;ebook;viewer; MimeType=application/x-cbz;application/x-cbc;application/x-mobipocket-ebook;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/ereader;application/x-cb7;application/x-mobi8-ebook;application/vnd.ms-word.document.macroenabled.12;application/vnd.ctc-posml;application/epub+zip;application/oebps-package+xml;image/vnd.djvu;application/x-cbr;application/x-sony-bbeb;application/x-mobipocket-subscription;
Linux KDE和Linux GNOME桌面系统都使用 Desktop
Entry
Specification来描述程序启动配置信息。Desktop Entry 文件标准是由
X Desktop Group 制定的,目前最新的版本是"Desktop Entry
Specification 1.5"。
在安装完成gitlab-runner后,发现如要直接部署到gitlab则gitlab-runner无法正常工作,使用diary.sh发布博客时还需要设置一段代码检测gitlab-runner是否以普通帐号运行,如果不运行则使用
gitlab-runner run
启动,这个操作不规范,虽然用了一段时间,但是今天还是决定修复这个问题。造成这个问题的原因是,在安装gitlab-runner时其默认建立了一个名为gitlab-runner的帐号,但是这个帐号又不在root组中,这个权限问题导致了部署博客时gitlab-runner无法正常运行。