kledgeb UbuntuやLinuxの最新情報を紹介

Ubuntu Nautilus Actions その18 - アイテムをファイルにエクスポートする

アイテムをファイルにエクスポートする

  アイテムをファイルにエクスポートします。
  エクスポートされたアイテムを後でインポートして取り込むことができます。

  1.エクスポートアシスタントの起動

    「Tools」メニューを開き、「Export assistant」をクリックします。


    アイテム一覧を右クリックして表示されるメニューから「Export assistant」をクリックしても良いです。


  2.エクスポートアシスタント

    以下のように、エクスポートアシスタントが起動します。


    「進む」ボタンをクリックします。

  3.アイテムの選択

    以下の画面が表示されるので、エクスポートしたいアイテムを選択します。
    アイテムは、「Ctrl」キーや「Shift」キーを押しながらクリックすると、複数のアイテムが選択可能です。


    「Ctrl + A」キーを押せば、全てのアイテムが選択されます。
    ここでは例として、以下のように選択しました。


    エクスポートしたいアイテムを選択したら、「進む」ボタンをクリックします。

  4.保存先の選択

    以下の画面が表示されるので、ファイルの保存先フォルダーを選択します。


    「進む」ボタンをクリックします。

  5.フォーマットの選択

    以下の画面が表示されるので、ファイルのフォーマットを選択します。
    「Export as a .desktop file」を選択すればよいです。
    他のフォーマットは、以前のバージョンで使用されていたフォーマットです。


    「進む」ボタンをクリックします。

  6.エクスポート内容確認

    以下のように、エクスポート内容が表示されます。


    「適用」ボタンをクリックします。

  7.エクスポート完了

    アイテムのエクスポートが行われ、以下のようにエクスポート結果が表示されます。


    「閉じる」ボタンをクリックして完了です。

  8.エクスポートされたアイテムの確認

    「4.」で選択した保存先を「Nuatilus」で開くと、以下のようにエクスポートされたアイテムがファイルとして保存されています。


フォーマットの違いについて

  上記の「5.フォーマットの選択」では、ファイルのフォーマットが選択できます。
  上記で記述した通り、「Export as a .desktop file」を選択すればよいですが、参考までに各フォーマット選択時にファイルの中身がどうなるか見てみます。

  .desktop file

    デスクトップエントリーファイルと同種のフォーマットです。
    ファイルの拡張子は、「.desktop」です。

[Desktop Entry]
Type=Action
Name[ja]=Nautilusで開く
TargetLocation=true
ToolbarLabel[ja]=Nautilusで開く
Profiles=profile-zero;

[X-Action-Profile profile-zero]
Name[ja]=Default profile
Exec=nautilus 

  full GConf schema file

    GConfで使用されるフォーマットです。
    ファイルの拡張子は、「.schemas」です。

?xml version="1.0" encoding="UTF-8"?>
<gconfschemafile>
  <schemalist>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/type</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/type</applyto>
      <type>string</type>
      <default>Action</default>
      <locale name="C">
        <short>Type of the item</short>
        <long>Defines if the item is an action or a menu. Possible values are :
- 'Action',
- 'Menu'.
The value is case sensitive and must not be localized.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/iversion</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/iversion</applyto>
      <type>int</type>
      <default>3</default>
      <locale name="C">
        <short>Version of the format</short>
        <long>The version of the configuration format that will be used to manage backward compatibility.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/items</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/items</applyto>
      <type>list</type>
      <list_type>string</list_type>
      <default>[profile-zero]</default>
      <locale name="C">
        <short>List of subitem ids</short>
        <long>Ordered list of the IDs of the subitems. This may be actions or menus if the item is a menu, or profiles if the item is an action.
If this list doesn't exist or is empty for an action or a menu, subitems are attached in the order of the read operations.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/label</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/label</applyto>
      <type>string</type>
      <locale name="C">
        <default>Nautilusで開く</default>
        <short>Label of the context menu item (mandatory)</short>
        <long>The label of the menu item that will appear in the file manager context menu when the selection matches the appearance condition settings.
It is also used as a default for the toolbar label of an action.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/target-location</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/target-location</applyto>
      <type>bool</type>
      <default>true</default>
      <locale name="C">
        <short>Targets the location context menu</short>
        <long>Whether the action targets the file manager context menus when there is no selection, thus applying to current location.
Note that menus are always potential candidate to the display in selection context menus provided that they contain at least one action.
Defaults to FALSE</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/toolbar-label</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/toolbar-label</applyto>
      <type>string</type>
      <locale name="C">
        <default>Nautilusで開く</default>
        <short>Label of the toolbar item</short>
        <long>The label displayed besides of the icon in the file manager toolbar.
Note that actual display may depend of your own Desktop Environment preferences.
Defaults to label of the context menu when not set or empty.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/desc-name</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/profile-zero/desc-name</applyto>
      <type>string</type>
      <locale name="C">
        <default>Default profile</default>
        <short>Name of the profile</short>
        <long>May be used as a description for the function of the profile.
If not set, it defaults to an auto-generated name.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/path</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/profile-zero/path</applyto>
      <type>string</type>
      <default>nautilus</default>
      <locale name="C">
        <short>Path of the command</short>
        <long>The path of the command to be executed when the user select the menu item in the file manager context menu or in the toolbar.</long>
      </locale>
      <owner>nautilus-actions</owner>
    </schema>
  </schemalist>
</gconf

  light GConf schema(v2) file

    GConfで使用される軽量フォーマットです。
    ファイルの拡張子は、「.schema」です。

<?xml version="1.0" encoding="UTF-8"?>
<gconfschemafile>
  <schemalist>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/type</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/type</applyto>
      <type>string</type>
      <default>Action</default>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/iversion</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/iversion</applyto>
      <type>int</type>
      <default>3</default>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/items</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/items</applyto>
      <type>list</type>
      <list_type>string</list_type>
      <default>[profile-zero]</default>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/label</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/label</applyto>
      <type>string</type>
      <locale name="C">
        <default>Nautilusで開く</default>
      </locale>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/target-location</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/target-location</applyto>
      <type>bool</type>
      <default>true</default>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/toolbar-label</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/toolbar-label</applyto>
      <type>string</type>
      <locale name="C">
        <default>Nautilusで開く</default>
      </locale>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/desc-name</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/profile-zero/desc-name</applyto>
      <type>string</type>
      <locale name="C">
        <default>Default profile</default>
      </locale>
    </schema>
    <schema>
      <key>/schemas/apps/nautilus-actions/configurations/path</key>
      <applyto>/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0/profile-zero/path</applyto>
      <type>string</type>
      <default>nautilus</default>
    </schema>
  </schemalist>
</gconf

  GConf dump file

    GConfで使用されるフォーマットです。
    ファイルの拡張子は、「.xml」です。

<?xml version="1.0" encoding="UTF-8"?>
<gconfentryfile>
  <entrylist base="/apps/nautilus-actions/configurations/affea47f-32cb-4f48-8b9b-ee8f6f4ca5c0">
    <entry>
      <key>type</key>
      <value>
        <string>Action</string>
      </value>
    </entry>
    <entry>
      <key>iversion</key>
      <value>
        <int>3</int>
      </value>
    </entry>
    <entry>
      <key>items</key>
      <value>
        <list type="string">
          <value>
            <string>profile-zero</string>
          </value>
        </list>
      </value>
    </entry>
    <entry>
      <key>label</key>
      <value>
        <string>Nautilusで開く</string>
      </value>
    </entry>
    <entry>
      <key>target-location</key>
      <value>
        <bool>true</bool>
      </value>
    </entry>
    <entry>
      <key>toolbar-label</key>
      <value>
        <string>Nautilusで開く</string>
      </value>
    </entry>
    <entry>
      <key>profile-zero/desc-name</key>
      <value>
        <string>Default profile</string>
      </value>
    </entry>
    <entry>
      <key>profile-zero/path</key>
      <value>
        <string>nautilus</string>
      </value>
    </entry>
  </entrylist>
</gcon

  Ask me

    アイテムごとに、どのフォーマットでアイテムをエクスポートするのかフォーマット選択画面を表示します。


    「Remember my choice in future export operations」にチェックを入れると、これ以降のアイテムはここで選択したフォーマットでエクスポートされます。
   

nautilus-actions
スポンサー
コメント
コメントポリシー
コメントをする前に UbuntuのCode of Conduct(CoC/行動規範) を確認し、CoCに沿ったコメントをお願いします。
コメントの使い方は、コメントの使い方を参照してください。
同一カテゴリーの記事
SNS
人気の記事
  • Ubuntu 26.04 その68 - Ubuntu 26.04.1 LTS がリリースされました・ディスクイメージのダウンロード
    Ubuntu 26.04.1 LTS リリース 2026年8月27日、Ubuntu 26.04.1 LTS がリリースされました。
  • Ubuntu 26.10 その24 - Ubuntu 26.10 の公式壁紙と壁紙コンペの結果発表
    Ubuntu 26.10 の公式壁紙と壁紙コンペの結果発表 Ubuntu 26.10 の公式壁紙と壁紙コンペの結果が発表されました。
  • Ubuntu 24.04 その104 - Ubuntu 26.04 LTS へアップグレードするには・アップグレードの注意事項
    Ubuntu 26.04 LTS へアップグレードするには 現在 Ubuntu 24.04 LTS を利用しているユーザーは、Ubuntu 26.04 LTS へアップグレードできます。
  • Ubuntu 24.04 その103 - Ubuntu 26.04 LTS へアップグレード可能に・2年分の変化が一気にやってくる
    Ubuntu 26.04 LTS へアップグレード可能に 2026年9月29日、Ubuntu 24.04 LTS から Ubuntu 26.04 LTS へアップグレード可能になりました。
  • Linux その437 - KDE Plasma で実装予定の新機能や改善・オーバービュー効果の改善や Kup の通知機能の改善など
    KDE Plasma で実装予定の新機能や改善 KDE Plasma で実装予定の新機能や改善を紹介します。
  • Ubuntu 26.10 その23 - x86-64-v3 に対応したデイリービルドのディスクイメージが利用可能に
    x86-64-v3 に対応したデイリービルドのディスクイメージが利用可能に x86-64-v3 に対応した Ubuntu Desktop 26.10 のデイリービルドのディスクイメージが利用可能になりました。
  • Ubuntu 26.04 その42 - Ubuntu 26.04.1 LTS のリリーススケジュール
    Ubuntu 26.04.1 LTSのリリーススケジュール Ubuntu 26.04.1 LTS のリリーススケジュールを紹介します。
  • Linux その429 - GNOME 向けアプリとアップデートの紹介・ RSS リーダーのインポート機能や映画マトリックスのデスクトップ効果など
    GNOME 向けアプリとアップデートの紹介 GNOME 向けアプリとアップデートの紹介です。
  • Ubuntu 26.04 その74 - Chromium 系ブラウザーにより、Qt6 で構築されたアプリがクラッシュする現象
    Qt6 で構築されたアプリがクラッシュする現象 Chromium 系ブラウザーにより、Qt6 で構築されたアプリがクラッシュする現象が報告されています。
  • Ubuntu 26.10 その26 - rust-coreutils へ完全移行・cp/mv/rm コマンドもRust版に移行
    rust-coreutils へ完全移行 Ubuntu 26.10 で rust-coreutils(uutils coreutils)へ完全移行します。
記事のピックアップ
オプション