Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

%F token in Nemo actions does not expand to file path (expands to empty string)

オープン
#3,774 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
desktop

調査の方向性

~/.local/share/nemo/actions/test-tokens.nemo_action で問題を再現し、%f、%F、%U、%d、%D に対するアクションの Exec 展開を比較します。まず、/usr/share/nemo/actions/sample.nemo_action と NEMO_SCRIPT_SELECTED_FILE_PATHS を参照しながら、Nemo のアクショントークン処理を追跡します。パスおよび URI トークンが文書化された値に展開され、%f が正しいままであれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Distribution

Linux Mint version: 22.3 "Zena"

Package version

Nemo version: 6.6.3

Frequency

Always

Bug description

The %F token is documented in /usr/share/nemo/actions/sample.nemo_action as:

# %F - insert path list of selection

However, when used in a custom action's Exec line, %F expands to an empty string. Only %f
produces a value, but it gives just the display name (filename without path), which matches
its own documentation (# %f or %N (deprecated) - insert display name of first selected file).

All other path/URI tokens (%U, %D, %d, %p, %P) also expand to empty strings.

Steps to reproduce
  1. Create ~/.local/share/nemo/actions/test-tokens.nemo_action:

    [Nemo Action]
    Active=true
    Name=Test Tokens
    Exec=bash -c 'echo "f=[%f] F=[%F] U=[%U] d=[%d] D=[%D]" >> /tmp/nemo-token-test.log'
    Selection=S
    Extensions=Any;

  2. Right-click any file -> Test Tokens

  3. Read /tmp/nemo-token-test.log

Actual result:
f=[filename.ext] F=[] U=[] d=[] D=[]

Expected behavior

Expected result:
f=[filename.ext] F=[/full/path/to/filename.ext] U=[file:///full/path/to/filename.ext] ...

Additional information

The NEMO_SCRIPT_SELECTED_FILE_PATHS environment variable is set correctly and can be read
from the script:

path=$(printf '%s' "$NEMO_SCRIPT_SELECTED_FILE_PATHS" | head -1)
主要言語
C
スター
1.6k
フォーク
376
平均マージ
6日 21時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxmint/nemo のほかの issue

linuxmint/nemo の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。