16 | | Ubuntu のデスクトップ環境でも採用されているデスクトップインターフェース(GUIシェル)である Unity 用の記述が desktop file に存在する場合があります。 |
17 | | {{{TargetEnvironment=Unity}}} |
| 16 | 今のところ筆者が目にした数は多くありませんが、 Ubuntu のデスクトップ環境でも採用されているデスクトップインターフェース(GUIシェル)である Unity 用の記述が desktop file に存在する場合があります。(今後数は増えるかも) |
| 17 | {{{ |
| 18 | TargetEnvironment=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 関連の記述を削除しています。 |