Changes between Initial Version and Version 1 of desktop-file-utils


Ignore:
Timestamp:
2011/11/06 23:23:56 (12 years ago)
Author:
kudoh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • desktop-file-utils

    v1 v1  
     1= desktop-file-utils = 
     2 
     3spec を書く際に desktop file(.desktop)を操作する desktop-file-utils を使用する場合があります。[[BR]] 
     4このページでは、 desktop-file-utils に関する情報を随時まとめていきたいと思います。 
     5 
     6== エラーが出るパッケージ == 
     7現在、[http://vinelinux.org/vineplus.html VinePlus] や[http://vinelinux.org/vineseed.html VineSeed] には、インストールの後(またはビルドの際)に error 或いは warning を発するパッケージが幾つか存在しています。それらのパッケージは使用可能ですが、今後はできる限り修正していきたいと思っています。まずはそれを見つけ次第リストアップします。 
     8 
     9=== VinePlus/6 === 
     10 *  
     11 
     12=== VineSeed === 
     13 *  
     14 
     15== Unity 用記述への対応 == 
     16今のところ目にした数は多くありませんが、 Ubuntu のデスクトップ環境で採用されているデスクトップインターフェース(GUIシェル)である Unity 用の記述が desktop file に存在する場合があります。(今後数は増えるかも) 
     17{{{ 
     18TargetEnvironment=Unity 
     19}}} 
     20上記のような記述が見えた場合、 Unity 用の記述となります。 Unity 以外では不要ですし error の元ですので、基本的には削除します。( desktop-file-install 或いは desktop-file-validate で引っかかったはず) 
     21 
     22{{{ 
     23--- midori-0.4.0/data/midori_orig.desktop.in    2011-08-02 07:06:36.000000000 +0900 
     24+++ midori-0.4.0/data/midori.desktop.in 2011-08-03 02:13:08.000000000 +0900 
     25@@ -13,19 +13,3 @@ 
     26 X-Osso-Type=application/x-executable 
     27 X-Osso-Service=midori 
     28 X-Ayatana-Desktop-Shortcuts=TabNew;WindowNew;Private 
     29- 
     30-[TabNew Shortcut Group] 
     31-Name=New _Tab 
     32-Exec=midori -e TabNew 
     33-TargetEnvironment=Unity 
     34- 
     35-[WindowNew Shortcut Group] 
     36-Name=New _Window 
     37-Exec=midori -e WindowNew 
     38-TargetEnvironment=Unity 
     39- 
     40-[Private Shortcut Group] 
     41-Name=New P_rivate Browsing Window 
     42-Exec=midori --private 
     43-TargetEnvironment=Unity 
     44- 
     45}}} 
     46ここに挙げた diff の事例は、 [http://software.twotoasts.de/index.php?/pages/midori_summary.html midori] の patch です。 Unity 関連の記述を削除しています。[[BR]] 
     47また、デスクトップ環境によりエントリの表示/非表示を指定する "OnlyShowIn" という項目があります。こちらにも以下のように Unity の指定がなされている場合があります。 
     48{{{ 
     49OnlyShowIn=GNOME;Unity; 
     50}}} 
     51[http://standards.freedesktop.org/menu-spec/latest/apb.html freedesktop.org の規定]によると、現在 Unity の指定はありますが、desktop-file-validate は error を返してきます(desktop-file-utils-0.18-1vl7)。将来的には問題なくなるかも知れませんが、今は sed などで事前に消すのがよいかと思います。 
     52 
     53= 参考 = 
     54 *  [http://standards.freedesktop.org/menu-spec/latest/apa.html Desktop Menu Specification A. Registered Categories] 
     55 *  [http://developer.momonga-linux.org/wiki/?cmd=view&p=desktop-file-utils Developer at Momonga Project - desktop-file-utils]