-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  . 

Make Executable (Skip Executable Bit)

   0.0.1  

Nautilus Script

Score 50%
Make Executable (Skip Executable Bit)
zoom


Make Executable (Skip Executable Bit)
zoom


Make Executable (Skip Executable Bit)
zoom


Minimum required   GNOME 2.x
Downloads:  628
Submitted:  Dec 21 2010
Updated:  Dec 21 2010

Description:

I hate this, I downloaded an untrusted application and want to execute it and THERE IT IS. This damn Executable Window.

Well I am to lazy to open the SHell and change its chmod.
Or even rightclick and change those Settings is to hard ;)

So I made this little Script. It allows you to directly change the chmod of the given File.

Note: This doesnt work on Remote Folders or Windows Partitions!

Just Rightclick of the given File and `Make Executable ! :)`


Installation is simple.
Just run the Program without any arguments.
The script prompts for the Installation.
Type: `y` if you hadn`t change your Home-Directory.




LicenseGPL
other(Make Executable Script)
Send to a friend
Subscribe
Other  Apps  from posixpascal
Report inappropriate content



-

 Couldn't get it to work

 
 by inameiname on: Dec 22 2010
 
Score 63%

Nice idea. Unfortunately, I couldn't get it to work. However, using a Nautilus-Action that I've had for a while that does this very thing I tweaked your script around a little to make it work. It works for multiple files now:

!/bin/bash
# Change the Install_Path.

INSTALL_PATH="/home/$USER/.gnome2/nautilus-scripts"

# Set IFS so that it won't consider spaces as entry separators. Without this, spaces in file/folder names can make the loop go wacky.
IFS=$'\n'

# See if the Nautilus environment variable is empty
if [ -z $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS ]; then
# If it's blank, set it equal to $1
NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=$1
fi

# Loop through the list (from either Nautilus or the command line)
for ARCHIVE_FULLPATH in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
NEWDIRNAME=${ARCHIVE_FULLPATH%.*}
FILENAME=${ARCHIVE_FULLPATH##*/}
NAME=${ARCHIVE_FULLPATH##*/.*}

if [ "$ARCHIVE_FULLPATH" ];then
gnome-terminal -x sudo chmod +x "$ARCHIVE_FULLPATH"
zenity --info --text="File "$ARCHIVE_FULLPATH" is now executable! :)"
else
# Install Script
echo "Installing Nautilus-Extension.."
echo "Install Script in: $INSTALL_PATH - Is that right? [y/n]"
read input
if [ "$input" == "y" ];then
mv "$0" "$INSTALL_PATH"
echo "Installation Successfully! :)"
else
echo ""
echo "Enter the /home/<name> NAME of your Homedir."
echo "Example: your home is /home/jjd - so type: jjd:"
read homedirname
sleep 1
echo "Installing Nautilus-Extension to /home/$homedirname/.gnome2/nautilus-scripts"
mv "$0" "/home/$homedirname/.gnome2/nautilus-scripts"
echo "Done! :)"
fi
fi
done


Reply to this

-
.

 nice

 
 by brucelee on: Dec 23 2010
 
Score 50%

It's a good ideea if you don't want to deactivate that check.
Here's a small script which I use and makes the wine launcher skip the executable bit check:


#!/bin/bash
if [ "$(id -u)" != "0" ]; then printf "\n * You must run this script as root.\n\n"; exit 0; fi
echo '[Desktop Entry]
Type=Application
Name=Wine Windows Program Loader
Exec=wine start /unix %f
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-win-lnk;application/x-ms-shortcut
Icon=wine
NoDisplay=true
Icon=wine
StartupNotify=true' > /tmp/wine.desktop
sudo cp --remove-destination /tmp/wine.desktop /usr/share/applications/wine.desktop
sudo rm -f /tmp/wine.desktop

Just put this in a file and run it as root. It should fix it. No need to call a script for each .exe you want to run.


Reply to this

Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About GTK-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2014 GTK-Apps.org Team  
All rights reserved. GTK-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.