將 Linux 程式新增至「其他應用程式」清單中,以便從 Nautilus 開啟檔案

將 Linux 程式新增至「其他應用程式」清單中,以便從 Nautilus 開啟檔案

我在ubuntu 12.0.4上安裝了markdown編輯器:

sudo dpkg -i /shared/mdcharm_1.1.6_i386.deb
sudo apt-get  -f install   # Installed missing dependencies

md編輯器現在安裝了嗎?

steve@mithril:/d/hwspark/docs$ which mdcharm
/usr/bin/mdcharm    # Installation successful!

mdcharm 不會顯示在 Nautilus 上右鍵/開啟選單的「其他應用程式」中。如何手動新增呢?

答案1

/usr/share/applications我認為 Nautilus 正在和中尋找應用程序,~./local/share/applications並且僅列出那些與您的文件 MIME 類型匹配的應用程式。.desktop如果您想在該清單中看到您的程序,您應該嘗試為您的程式建立一個啟動器(檔案)。確保您的啟動器包含文件的特定 mimetype(text/plain並且text/x-markdown可以想到,但您可以運行file --mime-type myfile.mdgvfs-info -a standard::content-type myfile.md並檢查輸出)。

相關內容