Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-10-13 11:35:24

einexperte
Member
From: Hamburg
Registered: 2017-01-06
Posts: 10

Drag multiple files on a starter - multiple instances (only 1 desired)

Hello again,

following my former post ...

https://forum.xfce.org/viewtopic.php?id=14415

... I selected two files on the desktop to drag and drop them on my starter.

[Desktop Entry]
Version=1.0
Type=Application
Name=testdnd
Comment=
Exec=/home/christoph/testdnd.sh %F
Icon=
Path=/home/christoph
Terminal=true
StartupNotify=false
GenericName=testdnd
X-Desktop-File-Install-Version=0.23

According to the Desktop Entry Specification ...

%f    A single file name (including the path), even if multiple files are selected. The system reading the desktop entry should recognize that the program in question cannot handle multiple file arguments, and it should probably spawn and execute multiple copies of a program for each selected file if the program is not able to handle additional file arguments.
----
%F    A list of files. Use for apps that can open several local files at once. Each file is passed as a separate argument to the executable program.

... %F tells the system that my application (script) will accept multiple arguments.

But "the system" spawns two instances of my test script, one for each argument.
I would like one instance that receives two arguments.

Am I missing something?
Or is xfce is not following the specs here?

Best regards,
Christoph


XFCE 4.12 on Debian/Linux (Buster) in German (my translations may be inaccurate)

Offline

#2 2020-10-13 15:47:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Drag multiple files on a starter - multiple instances (only 1 desired)

I'm getting the same results. I would guess it's a bug.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2020-10-13 17:29:03

einexperte
Member
From: Hamburg
Registered: 2017-01-06
Posts: 10

Re: Drag multiple files on a starter - multiple instances (only 1 desired)

Should I file a bug report?
Which version of xfce did you use?


XFCE 4.12 on Debian/Linux (Buster) in German (my translations may be inaccurate)

Offline

#4 2020-10-13 17:58:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Drag multiple files on a starter - multiple instances (only 1 desired)

I'm running the latest built directly from the git tree.
You can file a bug report here.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2020-10-13 19:58:19

einexperte
Member
From: Hamburg
Registered: 2017-01-06
Posts: 10

Re: Drag multiple files on a starter - multiple instances (only 1 desired)


XFCE 4.12 on Debian/Linux (Buster) in German (my translations may be inaccurate)

Offline

Board footer

Powered by FluxBB