On 10/20/18 8:50 AM, Bob Goodwin wrote:
> On 10/19/18 18:27, Ed Greshko wrote:
>> I think you want your script to open up a separate window with a list of 
>> files in a
>> directory when you double-click
>> a launcher.
>>
>> I didn't use the same directory since I don't have it.  But I created some 
>> file in /tmp
>> starting with 2018.  And I use this
>> form of the script.
>>
>> #!/bin/bash
>> # SambaFiles
>>
>> cd /tmp
>>
>> xfce4-terminal -H -x ls -clr 2018* &
>>
>> And created a launcher for that.  Works fine.
>>
>> Also, I think you meant to type "ls -clr" and not "ls -ctr"?
> .
> -c     with  -lt:  sort  by, and show, ctime (time of last modification of 
> file status
> information); with
>               -l: show ctime and sort by name; otherwise: sort by ctime, 
> newest first
> -r, --reverse
>               reverse order while sorting
>
> I often do "ll -ctr" to produce an ascending sort by time, get the most 
> recent at the
> bottom of a long list where I can see what I have just downloaded ... There 
> may be a
> more elegant way but it works for me, e.g. digital audio book files that I 
> have to put
> on a flash drive to use them.
>>
>> Yes, the -H is used to hold the window open.
>>
> .
> Now I have:
>
> #!/bin/bash
> # SambaFiles
>
> cd /tmp
> xfce4-terminal --maximize -H -x  ls -ctr /mnt/box48/2018* &
>
> And that works nicely.
>
> When I tried to show my daughter the video clips the VLC gui refused to work! 
> I decided
> I needed a convenient way to use vlc despite that problem. I suspect viewing 
> the rtsp
> cameras leaves vlc in some condition that I can't view the iPhone videos, I 
> need to test
> that hypothesis.
>
> Anyway this scheme works reliably. I can pick a file from the list it 
> produces and open
> it with vlc in a terminal. That in white text on black which I prefer.
>
> Thank you for the help,
>

OK....

You don't need the "cd /tmp".  I had only done that doing my testing and didn't 
like the
format when using -ctr.



-- 
Cardinal Rule of Presentations: "Tell them what you are going to tell them, 
tell them,
then tell them what you told them."
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to