pcmanfm executes scripts from the home directory

Bug #1063192 reported by Neosano
16
This bug affects 3 people
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://dl.dropbox.com/u/71236259/2012-10-07-140215_622x101_scrot.png
Click "execute" or "execute in terminal".

I expected the "testfile" to be created in the same folder (/home/user/Desktop/ in this example), but really it's going to be created in my home directory (/home/user/)

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
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
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_Home_lubuntu:

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)

Revision history for this message
Neosano (neosanor) wrote :
summary: - pcmanfm executes scripts from home directory
+ pcmanfm executes scripts from the home directory
Neosano (neosanor)
Changed in pcmanfm (Ubuntu):
status: New → Confirmed
Revision history for this message
netrick (netrick) wrote :

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.

Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 20.10 (groovy) reached end-of-life on July 22, 2021.
Ubuntu 19.10 (eoan) reached end-of-life on July 17, 2020.
Ubuntu 19.04 (disco) reached end-of-life on January 23, 2020.
Ubuntu 18.10 (cosmic) reached end-of-life on July 18, 2019.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.
Ubuntu 17.04 (zesty) reached end-of-life on January 13, 2018.
Ubuntu 16.10 (yakkety) reached end-of-life on July 20, 2017.
Ubuntu 16.04 (xenial) reached end-of-life on April 29, 2021.
Ubuntu 15.10 (wily) reached end-of-life on July 28, 2016.
Ubuntu 15.04 (vivid) reached end-of-life on February 4, 2016.
Ubuntu 14.10 (utopic) reached end-of-life on July 23, 2015.
Ubuntu 14.04 (trusty) reached end-of-life on April 25, 2019.
Ubuntu 13.10 (saucy) reached end-of-life on July 17, 2014.
Ubuntu 13.04 (raring) reached end-of-life on January 27, 2014.
Ubuntu 12.10 (quantal) reached end-of-life on May 16, 2014.
Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in pcmanfm (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pcmanfm (Ubuntu) because there has been no activity for 60 days.]

Changed in pcmanfm (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.