[SOLVED] Can't execute scripts with Thunar/XFCE. (Runs OK in terminal)

Until recently, I could double-click a script (or link to a script) in Thunar or on the XFCE desktop, and it would execute
Now, however, when I double-click a script, it opens in Leafpad (my text editor).  I've browsed the wiki and searched the forum and web, but can't find any clues as to what has changed or why this is happening.
I can right-click in Thunar and use the "Open With>" option to set the script to open with another application, but there's no obvious option to run a script.  Opening with a terminal emulator results in a brief hourglass, then nothing.
The script I'm testing with (the Tor Browser Bundle startup script) is in my /home/myname directory, has -rwx------ permissions (with me as the owner), and the file type in Thunar shows "shell script".  It runs fine if I execute it in a terminal with "sh /path/to/script" -- just not via Thunar or the XFCE desktop.
Can anyone suggest anything I could check?
Last edited by esuhl (2015-03-08 09:49:52)

foutrelis wrote:
This is an intended change in Thunar 1.6.5: https://bugzilla.xfce.org/show_bug.cgi?id=7596#c15
Thunar 1.6.6 has a hidden option to restore the old behavior: http://git.xfce.org/xfce/thunar/commit/?id=b385bcf
The option is called misc-exec-shell-scripts-by-default and can be set using xfce4-settings-editor or by following the instructions here:
http://docs.xfce.org/xfce/thunar/hidden-settings
Thanks so much for the explanation!
I tried creating "misc-exec-shell-scripts-by-default" in the Settings Editor, set to true, but it didn't seem to have any effect.  So I tried this in a terminal, also to no effect:
xfconf-query --channel thunar --property /misc-exec-shell-scripts-by-default --create --type bool --set true
If I right-click on a script, the top item on the menu is still "Open with Leafpad".  Do I somehow need to change the default behaviour to "execute script"...?  I've searched but I can't seem to find any further information.
I guess it's not a big deal, but it would be nice to restore the default behaviour.

Similar Messages

  • I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    No.  2 steps if the app is already open, double tap the home button and then tap on the app.

  • Can i use icloud with my powerbookG4 running OS 10.4.11?

    can i use icloud with my powerbookG4 running OS 10.4.11?

    It can be upgraded, if you want more use out of it.
    It just can't be upgraded enough for iCloud.
    For example, you can upgrade it to 10.5. But not 10.7.

  • Macbook Pro running Snow leaopard can not share screen with Mac Pro running lion with "Back to my Mac"

    Anyone else?  When I use back to my mac, I can get access to the files on my desktop, BUT, I can't screen share.  Screen share is sleected in settings and everything I know to check is set up right.  Back to my Mac ir running on both machines using the same sign in.
    Any ideas?
    Jon

    Once you get yourself back to Snow Leopard, if you still want to upgrade somewhat, I would suggest the following:
    1. Get an external hard drive that you can use for experiments with new OS versions. You could partition it into 2 or 3 partitions. You could then clone your existing Snow Leopard system to one partition using Carbon Copy Cloner (well worth $40) or SuperDuper ($25).
    2. Buy OS X Mountain Lion for $20, through the Apple online store (I don't think it's available through the App Store). Apple has decided to make it very difficult for anyone to get Mavericks unless they have already downloaded it.
    You will receive two e-mails from Apple, one containing a PDF with a redemption code, and one with the password you will need to unlock the PDF. Using the code, you will download Mountain Lion from the App Store, where it will appear among your Purchased items.
    After ML finishes downloading, its installer app will launch itself. When you see this launch screen, QUIT the install app immediately! Go to your applications folder, find the Install OS X Mountain Lion app, and copy it to a safe location outside of your Applications folder. Keeping one or more copies will allow you to reinstall without unnecessary aggravation if you later need or want to do that. At this point, you can re-launch the Installer in the Applications folder and let it run. You can install it on a clean partition on your external HD, or you can allow it to upgrade the Snow Leopard clone you created on your external drive, or you can do both. This should allow you to test how everything works for as long as you like.
    3. If you left yourself a free partition on your test drive, try a clean install of Yosemite and set everything up from scratch (do not migrate anything). This will allow you to see whether your problems with it were related to something in your Snow Leopard system.

  • [SOLVED] Can't use scrot with a shortcut in Xfce

    I don't need to be bothered by a dialog and browsing to my screenshots directory every time I want to take a screenshot, so I've tried to set a keyboard shortcut in Xfce that lets me simply put a screenshot in the directory for me.  However, nothing seems to be happening.
    I've set the command to be just plain old 'scrot' (and '/usr/bin/scrot' just to be sure) as suggested on the Arch Wiki and have tried the format suggested in the scrot man page.  Neither works, and I can't figure out why.  As a point of information, the
    scrot '%Y-%m-%d.png' -e 'mv $f ~/shots/'
    suggested by the man page doesn't work because it says that --.png is not a valid option.  So it would seem that the calls to strftime are being interpreted wrongly or at the wrong time?
    Thanks for any help.
    Last edited by JeSuisNerd (2012-03-31 23:55:38)

    What if you create a script like this:
    #!/bin/bash
    scrot '%Y-%m-%d.png' -e 'mv $f ~/shots/'
    Make it executable:
    chmod +x the_script
    Then try it in the terminal and see if you get a screenshot, if you do, then modify the key bind in xfce to run:
    /home/username/the_script
    And see if it works that way. It's not really a solution if it works, because you need the script.

  • Create a script that can create entire schema with data when run

    Hi,
    I need to create a script that creates the entire schema on a database when the script is run. the need is that the script should be capable of creating all schema objects with grants and all, including the table data.
    The same objective can be achived through export / import.But we don't want to deliver the dump files instead a script which will be executed on a database created with same database stucture of tablespaces etc.
    I have serched the net but yet to achive the goal.
    Is there any oracle utility / script file that can do this for me ?
    Can Oracle import be used to create the same, the way it is used to create index File ?
    Please suggest !!
    Regards

    You should look at the package dbms_metadata to be able to extract all ddl to recreate a schema. To load the data, you could write scripts that will generate insert statements and spool these to a file (sql generating sql), or you could write scripts that generates a delimited file and use sql loader to load the data into the target system. There are lots of little gotchas in either of these 2 solutions. The biggest 2 right away. 1 - picking a delimiter, 2 - dealing with carriage returns in text data. SQL Developer is able to do some extraction, so before you go writing this stuff yourself, I would check it out to see if it does what you are looking for before you reinvent the wheel.

  • Can't create scripts with Mozilla Firefox 2.0.0.1

    I'm new in Oracle XE but I'm studing.
    The installation is on a MS windows XP Home Edition with SP 2.
    When I trie to create a Script or to see a Procedure created within SQL window, the code don't appear with the Mozilla browser. The lines number dont appear in the left side of the window.
    Instead if I use the Windows Internet Expolrer browser the things goes OK.
    I get the following errors on the MFFox ErrorConsole from the Tools pane:
    Erro: s has no properties
    Arquivo-fonte: http://127.0.0.1:8080/i/editor/codearea.xbl.xml
    Linha: 3356
    Erro: line.div has no properties
    Arquivo-fonte: http://127.0.0.1:8080/i/editor/codearea.xbl.xml
    Linha: 3649
    Is there any help available?

    Hi
    Hope this helps.
    The dbms_metadata utility is also used for punching source code, PL/SQL, and Java that is stored inside Oracle packages. Stored procedures or functions can also easily be extracted using dbms_metadata.
    In the example below, I extract all procedures associated with the fred schema.
    connect fred/flintstone;
    spool procedures_punch.lst
    select
    DBMS_METADATA.GET_DDL('PROCEDURE',u.object_name)
    from
    user_objects u
    where
    object_type = 'PROCEDURE';
    spool off;
    The script at: http://www.dbazine.com/code/ext_proc.txt shows how to use dbms_metadata.get_ddl() to extract stored procedure DDL from user SCOTT.

  • Creating an executable script with vi and chmod

    I have some after market packages I want to set up in my MBP Mavericks. I create a script file in iv called runada. It adds some directories to the global $PATH variable. I then change rights on the script, runada, with 'chmod a+x runada' so it becomes an execuitble. But it fails when I call runada within a shell terminal. I have seent his work in Debian I think.

    As a guess: PATH needs to be exported if you want that setting to persist after the script modifies it and exits, or you'll need to "." or "source" invoke the script.
    In any case, post a reproducer of the bash and somebody here can have a look.
    Using homebrew is another approach to rolling your own packaging (if that's where you're headed here), and there are various alternatives to that.

  • [SOLVED] Can't sign key with pacman-key

    I've been reading and digging all over the place but I can't seem to find anything on this.
    1. I have created my own keys for signing packages that I want to put in a local repo so I don't have to compile the same package over and over on all my machines.
    2. I have imported said key using sudo pacman-key --add rdjack21.pgp
    3. Used sudo pacman-key --lsign rdjack21 I get this output:
      -> Locally signing key rdjack21...
    ==> ERROR: rdjack21 could not be locally signed.
    4. Ok so lets sudo pacman-key --edit rdjack21  output:
    gpg> sign
    pub  rsa2048/3D1B5544
         created: 2014-11-30  expires: never       usage: SC 
         trust: ultimate      validity: ultimate
    Primary key fingerprint: B0D7 C728 31FA B2B0 6A3C  7086 DC7F DE0C 3D1B 5544
         Richard Jackson <[email protected]>
    Are you sure that you want to sign this key with your
    key "Pacman Keyring Master Key <pacman@localhost>" (645ECB0E)
    Really sign? (y/N) y
    gpg: signing failed: No pinentry
    gpg: signing failed: No pinentry
    gpg>
    5. To hack this and make pacman work with my local repo signed by the rdjack21 key I had to change the trust to ultimate but I do not like that solution. I would prefer to sign the key and move the trust back down to full which is where it should be.
    This is happening on all of my boxes not just one of them. I did find something on the web about "No pinentry" message above and the sugestion was to change the owner of the tty I'm using to be root for the signing to work but that did not work for me (su'ed to root first instead of running everything with sudo).
    While changeing the trust works that just feels wrong to me. I really should beable to sign the key.
    Last edited by rdjack21 (2014-12-01 01:50:05)

    Taking a clue post gnupg 2.1.0-4 upgrade breaks passphrase via STDIN I was able to solve the problem and I can now sign keys.
    The solution is add "pinentry-mode loopback" to /etc/pacman.d/gnupg/gpg.conf
    And create the file /etc/pacman.d/gnupg/gpg-agent.conf and put "allow-loopback-pinentry" in the file.
    Once that is done everythings works as expected!
    Marking this as solved.

  • [SOLVED] Can't start pulseaudio with other users?

    I am having trouble getting pulseaudio to start using a different user. The user "corey" can run pulse just fine. After logging out and logging in on user "tv", running pulseaudio --start returns this error message:
    E [autospawn] core-util.c: Failed to create secure directory: Operation not permitted
    W [autospawn] lock-autospawn.c: Cannot access autospawn lock.
    E [pulseaudio] main.c: Failed to acquire autospawn lock
    So it seems this user does not have permission? I can't imagine why, both corey and tv are in the audio group and both had active consolekit sessions at the time.
    I don't know if this is relative information but I'll throw it out there anyway. I have a multiseat configuration with 2 seats, 1 at my desktop the other for my tv however for right now I am just logging into the display at my desktop. I followed most of the relative information about pulseaudio and multiseat from this page on the gentoo wiki (including editing the config files Xstartup and Xreset): here
    consolekit though seems to be acting wierd, right now ck-list-sessions produces this:
    Session3:
    unix-user = '1000'
    realname = 'Corey Teetor'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-02-17T06:19:44.835923Z'
    login-session-id = '4294967295'
    Session1:
    unix-user = '1001'
    realname = 'The Television'
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ''
    x11-display-device = ''
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-02-17T06:13:33.618814Z'
    login-session-id = '1'
    it says that the session for corey is not active even though i am logged in right now and pulse is running. I am a bit confused...please share your wisdom with me!
    Last edited by cteeto (2012-02-18 16:47:51)

    cteeto wrote:Thank you good sir, it worked Next time I should probably try googleing it myself huh?
    No problem at all , could you edit the title of the post to say solved please, Thanks.

  • [SOLVED] Can't start compiz with gnome

    When I set up gnome initially, I used the following wiki guide:
    https://wiki.archlinux.org/index.php/Co … k_Users.29
    I had some issues after upgrading to gnome 3.8 that have now since been solved.  I wen't through quite a bit trying to fix it and now somehow compiz isn't starting with my gnome/compiz session.  It starts just fine if I run
    $ compiz ccp --replace
    after logging into the session.  I think I'm simply not understanding how this session that I've installed works (or .session files in general).
    here is my /usr/share/gnome-session/sessions/gnome-compiz.session:
    [GNOME Session]
    Name=GNOME Compiz
    RequiredComponents=compiz;cairo-dock;gnome-settings-daemon;
    RequiredProviders=notifications;
    DefaultProvider-windowmanager=compiz
    DefaultProvider-notifications=notification-daemon
    I tried removing cairo-dock from the above file just to make sure that this is the file actually being used and it did start up without the dock as I guessed.  Obviously this file is being used.  Why won't compiz start as well?  I also tried adding gnome-panel to the file and gnome-panel did not start.  Is this because it needs a .desktop file as well?  I assume so.
    Here is my /usr/share/xsessions/gnome-compiz.desktop:
    [Desktop Entry]
    Encoding=UTF-8
    Name=GNOME/Compiz
    Comment=This session logs you into the GNOME desktop environment with Compiz and Cairo-Dock
    Exec=/usr/bin/gnome-session --session=gnome-compiz
    Icon=compiz
    Type=XSession
    and here is my /usr/share/applications/compiz.desktop:
    [Desktop Entry]
    Type=Application
    Encoding=UTF-8
    Name=Compiz
    Exec=bash -c 'compiz --replace --sm-client-id $DESKTOP_AUTOSTART_ID --keep-desktop-hints ccp decoration'
    NoDisplay=true
    # name of loadable control center module
    X-GNOME-WMSettingsModule=compiz
    # autostart phase
    X-GNOME-Autostart-Phase=WindowManager
    X-GNOME-Provides=windowmanager
    # name we put on the WM spec check window
    X-GNOME-WMName=compiz
    # back compat only
    X-GnomeWMSettingsLibrary=compiz
    Last edited by instantaphex (2013-05-04 20:59:44)

    So I started to think that maybe compiz was actually starting up but the ccp argument wasn't taking.  I ran
    $ pgrep -l compiz
    and got no output.  So compiz really isn't starting at all.  What gives?

  • [SOLVED] Can't left-click with mouse (but I can on a tablet)

    On a recent update, I noticed that my desktop would not detect my mouse's left-click.  It correctly detects middle-click and right-click, however.  On the other hand, I can left-click with a tablet.
    How can I make it so that it will detect both the mouse and tablet's left-clicks?
    I'm using evdev for the mouse, and linuxwacom-bamboo for tablet drivers.
    Edit: My bad, it was a hardware problem!  Bought a new mouse to fix it.
    My xorg.conf.d configurations are:
    # Catch-all evdev loader for udev-based systems
    # We don't simply match on any device since that also adds accelerometers
    # and other devices that we don't really want to use. The list below
    # matches everything but joysticks.
    Section "InputClass"
    Identifier "evdev pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev keyboard catchall"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev tablet catchall"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    EndSection
    Section "InputClass"
    Identifier "Wacom class"
    # WALTOP needs a patched kernel driver, that isn't in mainline lk yet,
    # so for now just let it fall through and be picked up by evdev instead.
    # MatchProduct "Wacom|WALTOP|WACOM"
    MatchProduct "Wacom|WACOM|Hanwang"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    Option "Suppress" "10"
    Option "PressureCurve" "0 0 90 100"
    Option "Mode" "Relative"
    Option "Threshold" "200"
    EndSection
    Section "InputClass"
    Identifier "Wacom serial class"
    MatchProduct "Serial Wacom Tablet"
    Driver "wacom"
    Option "Suppress" "10"
    Option "PressureCurve" "0 0 90 100"
    Option "Mode" "Relative"
    Option "Threshold" "200"
    EndSection
    Section "InputClass"
    Identifier "Wacom serial class identifiers"
    MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
    Driver "wacom"
    Option "Suppress" "10"
    Option "PressureCurve" "0 0 90 100"
    Option "Mode" "Relative"
    Option "Threshold" "200"
    EndSection
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
    Identifier "Wacom N-Trig class"
    MatchProduct "HID 1b96:0001|N-Trig Pen"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
    Option "Button2" "3"
    Option "Suppress" "10"
    Option "PressureCurve" "0 0 90 100"
    Option "Mode" "Relative"
    Option "Threshold" "200"
    EndSection
    Last edited by japtar10101 (2011-06-07 01:16:23)

    Open mouse in system preferences and see if secondary click is on right-click.

  • [solv]Can't upload script in "SQL Scripts": Empty contents in Script editor

    When I try to upload a script via Home->SQL->SQL Scripts->Upload->Browse->Upload I get an icon on the Home->SQL->SQL Scripts page. When I click this icon, however, to view its contents I get an empty field on the Script editor page. The problem occurs regardless which file I upload or if I login as the system user.
    Anybody knows a solution?
    Message was edited by:
    user590050

    See if this thread helps:
    Re: Creating Script using Script Editor It helped. Problem is solved for firefox AND netscape!
    (konqueror support would be big time, but arguably won't ever come...)

  • [SOLVED] Can't Stop nVidia with Bumblebee - bbswitch - Nouveau

    Hi all
    I have a problem with running Bumblebee for a laptop using NVIDIA OPTIMUS.
    I've read this post but nothig changed.
    I'm using Intel driver and Nouveau...
    #optirun glxgears -info
    [  186.336392] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
    [  186.336470] [ERROR]Aborting because fallback start is disabled.
    What am I have to do?
    Please help...
    Last edited by Known (2013-07-27 21:07:29)

    hadrons123 wrote:
    systemctl status bumblebeed.service
    cat  /proc/acpi/bbswitch
    locate nvidia | grep ko
    output?
    Thank you for answering:
    #systemctl status bumblebeed.service
    bumblebeed.service - Bumblebee C Daemon
              Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
              Active: active (running) since یکشنبه 2013-03-31 10:25:34 IRDT; 5min ago
            Main PID: 363 (bumblebeed)
              CGroup: name=systemd:/system/bumblebeed.service
                      └─363 /usr/sbin/bumblebeed
    #cat  /proc/acpi/bbswitch
    0000:01:00.0 ON
    #locate nvidia | grep ko
    zsh: command not found: locate
    And I've installed this:
    Is it related to the error because it says: Failed to load module "mouse" (module does not exist, 0)
    #pacman -S xf86-input-mouse

  • [SOLVED]can't "rewind" command with holding arrows on keyboard.

    I hope to make myself as clear as I can: when I hold arrows on keyboards (in game for example) I can only move 1 square, when it should go until I release arrow.
    Same in console, I can't "rewind" command when holding arrow, I have to keep pushing it until it gets where I want it.
    Last edited by begbie (2010-08-11 10:45:09)

    you mean terminal history browsing? Well this isn't a solution to your problem, but you could always use bang commands or command history search, which has eliminated my use of the arrow keys.
    For your particular problem, what terminal emulator are you using? And what's the config?

Maybe you are looking for

  • Service Entry field selection

    Hi Experts, In Service Entry sheet, we need one particular field to be editable after final release also. I tried the options with field selection in External Service Mgmt for u201Crelease indicator Ex: Bu201D. But none of the settings make the field

  • Front row won't play any theme except the classic one

    Hey guys I cannot get front row to play any other theme except the classic (ken burns) theme I've tried setting a theme as default in iphoto and i've made a slideshow, but nothing worked Any ideas? Thanks Chris

  • SCOM Agent Cache

    Hi Guys, we have SCOM 2012 SP1 in production. I'm receiving complaints from the customer that SCOM has failed to alert on an event. Example: though the agent service is running and the threshold is breached, logical disk monitor, service monitor (man

  • New PKCS#11 device does not load on ver. 29.0.1 on mac 10.9.2

    I have a Aladdin e-token pro having a digital certificate. I am trying to load this device but nothing happens after I define the module filename under the LOAD option of the Security Device.

  • Best way to config GWIA

    I have a SLES 10 SP2 server running GW703HP4. I know I can edit the GWIA properties using C1 but I also see the GWIA configuration file under /opt/novell/groupwise/agents/share/gwia.cfg. When GWIA starts on the SLES server, how does it know what para