Re: run script in xfce -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/20/18 5:03 AM, Bob Goodwin wrote:
> .
> I have a bash script that runs in a user terminal but I can't get it to run from an xfce
> launcher icon. I usually set up one without any trouble but this refuses to work as
> expected.
>
> This is what I have, the commented line works but  the one before it is simpler, either
> way the result is the same, permissions are set to 777. All it produces from the
> launcher icon is a brief flash of the data and then a blank screen.
>
> [bobg@box83 ~]$ cat SambaFiles
> #!/bin/bash
> # SambaFiles
>
> xfce4-terminal -H -x  &
>
> # /usr/bin/xfce4-terminal --maximize  -e 'cd /mnt/box48' &
>
> ls -ctr /mnt/box48/2018*
>
> In a terminal "[bobg@box83 ~]$ ./SambaFiles" produces the desired directory listing as
> does /home/bobg/SambaFiles, but neither works when configured in the launcher from the gui.
>
> Any suggestions appreciated,
>

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"?

Yes, the -H is used to hold the window open. 




-- 
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 -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux