Re: Looking for a generic drag and drop gui for custom commands
- To: tixy@yxit.co.uk
- Cc: debian-user@lists.debian.org
- Subject: Re: Looking for a generic drag and drop gui for custom commands
- From: "Christoph K." <christoph@kobenetz.de>
- Date: Tue, 13 Oct 2020 14:17:14 +0200
- Message-id: <[🔎] 20201013141714.ff883340d36f0400cd661cd4@kobenetz.de>
- In-reply-to: <f85506b002e4754966a6611954ff4b2422d44e1a.camel@yxit.co.uk>
- References: <20200907224337.ce68b69e55c7883e5bebd4a4@kobenetz.de> <0bca86156d3fe86ea598cb47240fee08@gmail.com> <c3d8172ef52fffeba3e704f7499f71dc87fc8b4e.camel@yxit.co.uk> <20200908171520.31327fb14b1f4222d68d606b@kobenetz.de> <f85506b002e4754966a6611954ff4b2422d44e1a.camel@yxit.co.uk>
Am Tue, 08 Sep 2020 17:41:55 +0100
schrieb Tixy <tixy@yxit.co.uk>:
> #------------------------------------------------
> ~$ cat Desktop/test.desktop
> [Desktop Entry]
> Encoding=UTF-8
> Version=1.0
> Type=Application
> Terminal=true
> Exec=/home/tixy/test.sh %F
> Name=Test launcher
> Icon=/home/tixy/test.svg
>
> #------------------------------------------------
Thanks so much Tixy.
To my shame I have to admit that I was missing the %F (or %U) in my
desktop starter file.
Now with '%F' I can drag and drop, the programm accepts the argument,
but only one. When I give two arguments (select two files from the
desktop, drag and drop them on the starter), xfce will spawn two
instances, even though I used capital '%F'.
I've asked a question in the xfce forums about this:
https://forum.xfce.org/viewtopic.php?pid=60260
> This is what I did to test, including some code to distinguish audio
> files from extension. (The 'file' command would probably be best for
> testing file type properly, never used this though.)
Thanks for your audio/video code, but I *really* want a gui that will
handle stuff in a more generic way. Your example inpired me to "auto
sort" the arguments if there are multiple that need to be in exact order.
That would be a super feature for the really lazy "grab all - drop all"
users ;-)
Actually I've got the basic idea implemented already (using Python/QT).
The GUI lets me select the task from a list (by files in a configuration
directory) and load the "command template" from that file. The program
will then substitue the placeholders with my drag and drop arguments.
For now I can combine/split video files and also upload files to a server
using scp and interactivly ask for a password (spawned a terminal running
bash). And of course I have a "hello argument" test ;-)
There are plenty of ideas how to improve the program. The source code is
still quite dirty (it's more a proof of concept at the moment). But I
might decided to release it in case some of my friends find it useful ;-)
Best regards,
Christoph
Reply to: