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 -- [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]
