pcmanfm executes scripts from the home directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcmanfm (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
How to reproduce:
Create a script file in any folder you like, for example in /home/user/Desktop/
Here's the script:
#!/bin/bash
echo "${PWD}" > testfile
Now make this file executable and double click it. You'll see a message like this:
https:/
Click "execute" or "execute in terminal".
I expected the "testfile" to be created in the same folder (/home/
Really I was tired of removing some pngs in one of my folders, so I created a script to remove all pngs (rm *.png) and executed it this way. Now I've lost all my png files in my home directory :(
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pcmanfm 0.9.10-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-30-generic i686
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Sun Oct 7 14:14:08 2012
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Release i386 (20120423)
Pref_Config_
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pcmanfm
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in pcmanfm (Ubuntu): | |
status: | New → Confirmed |
This bug should get fixed in 13.04. I will give you a reason. I am software developer. I made a game that loads textures etc from its location. I spent many long hours finding out why running from command line ./myapp works and launching it by pcmanfm causes it to crash. Well, this bug is a reason. The same is true for many scripts people write and for many apps. Please, fix it quickly.