आप अपने वितरण में डेस्कटॉप-फाइल-बर्तन पैकेजdesktop-file-validate
द्वारा दिए गए टूल की तलाश कर रहे हैं । सारांश में, आरक्षित शब्दों / वर्णों का उपयोग करते हुए, यह वाक्यविन्यास की जाँच करता है, कि यह डेस्कटॉप प्रविष्टि विनिर्देशन का अनुपालन करता है । यहाँ एक .desktop फ़ाइल का एक उदाहरण है:
➜ ~ desktop-file-validate asdf.desktop
asdf.desktop: error: value "cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*" for key "Exec" in group "Desktop Entry" contains a reserved character '&' outside of a quote
asdf.desktop: error: value "cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*" for key "Exec" in group "Desktop Entry" contains a reserved character '&' outside of a quote
asdf.desktop: error: value "cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*" for key "Exec" in group "Desktop Entry" contains a reserved character '$' outside of a quote
asdf.desktop: error: value "cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*" for key "Exec" in group "Desktop Entry" contains a reserved character '*' outside of a quote
asdf.desktop: hint: value item "GNOME" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: GTK
asdf.desktop: error: value "GNOME;Oracle;Utility;Development;" for key "Categories" in group "Desktop Entry" contains an unregistered value "Oracle"; values extending the format should start with "X-"
asdf.desktop: hint: value "GNOME;Oracle;Utility;Development;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
asdf.desktop: error: value "s.0.m.t.h.i.n.g" for key "Version" in group "Desktop Entry" is not a known version
जो अच्छी फ़ाइलों की तरह caribou-autostart.desktop
कुछ भी नहीं दिखाएगा।
desktop-file-validate
कोई त्रुटि नहीं दिखा सकता है, लेकिन फिर भी एक अमान्य प्रविष्टि के कारण काम नहीं कर सकता हैExec
।