LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-04-2016, 10:44 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Run script from file manager


Is there a way to run a script by double clicking on it using Thunar ?

When I double click it, it only opens in an editor.
 
Old 08-04-2016, 10:53 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Has the executable bit been flipped?

Code:
$ chmod +x /path/to/script
You can also right-click on it, set it as executable, in the GUI. And then any time you double-click on it, it should run. It's doing the same thing whether in the GUI or a shell; you're giving it permission to be eXecuted, rather than just Read or Written to.

Last edited by notKlaatu; 08-04-2016 at 10:54 PM.
 
Old 08-04-2016, 11:14 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
It is set to be executable.

Don't know why it will not run.
 
Old 08-05-2016, 03:51 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
thunar preferences?
 
Old 08-05-2016, 04:14 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I did not see anything in Preferences.
 
Old 08-05-2016, 06:00 PM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I found out that I have to use Open with Uxterm to run scripts.
 
Old 08-05-2016, 06:50 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
could be the mime type is fubared, check and update the mime data base.
what script is it? does it have a valid #!
 
Old 08-05-2016, 08:16 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Code:
#!/bin/bash
# 07.16.2016 21:17:42
#  Backup script customized for AMD system
gxmessage -fg red -font  'sans 20' -timeout 2 ' BACKING UP FILES FOR UBUNTU_MATE 64-BIT'
cd /home/andy/.mozilla/seamonkey/v23gi2p8.default/
echo marlin | sudo -S -H cp -u -f bookmarks.html /media/andy/MAXTOR_SDB1/Linux_Files
echo marlin | sudo -S -H zip -u ~/Documents/Ubuntu_Documents.zip *.html
#
cd ~/Documents
echo marlin | sudo -S -H zip -u Ubuntu_Documents.zip *.txt *.doc *.rtf *.html *.png *.pdf *.odt *.ods *.odg
echo marlin | sudo -S -H cp -u -f Ubuntu_Documents.zip /media/andy/MAXTOR_SDB1/Linux_Files
#
cd ~/Scripts
echo test > test.sh
echo marlin | sudo -S -H zip -u Ubuntu_Scripts.zip *.sh 
echo marlin | sudo -S -H cp -u -f Ubuntu_Scripts.zip /media/andy/MAXTOR_SDB1/Linux_Files
#
cd /home/andy/Icons
echo marlin | sudo -S -H zip -u Ubuntu_Icons.zip *.png
echo marlin | sudo -S -H cp -u -f Ubuntu_Icons.zip /media/andy/MAXTOR_SDB1/Linux_Files
gxmessage -fg blue -font  'sans 20' -timeout 2 'BACKUP TO SDB1 COMPLETE. :-)'
#
cd /home/andy/Music
echo marlin | sudo -S -H zip -u MUSIC.zip *.mp3
echo marlin | sudo -S -H cp -u -f MUSIC.zip /media/andy/MAXTOR_SDB1/Linux_Files
vol 50
#vlc --play-and-exit /usr/share/Audio/Short_doorbell.wav
I do not understand how to use it.

Quote:
Usage: update-mime-database.real [-hvVn] MIME-DIR

Last edited by Fixit7; 08-05-2016 at 08:21 PM.
 
Old 08-06-2016, 07:28 AM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Code:
update-mime-database -V /usr/share/mime
 
Old 08-06-2016, 08:23 AM   #10
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Archive manager error when trying to run .exe file ccurwen General 2 11-23-2012 12:56 PM
[SOLVED] Running script from a file manager show a different pwd mackes Linux - Software 2 08-27-2012 08:29 PM
Invoking script files from File Manager - HowTo ? longlostname Linux - Newbie 8 10-19-2008 01:36 PM
can we wirte a shell script to chance the file manager preference kamesh156 Linux - General 1 10-19-2005 10:52 AM
File Manager and Konqueror won't run S3ct0r Debian 2 05-29-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration