After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 414596 - "open with" don't change to the current directory
"open with" don't change to the current directory
Status: RESOLVED WONTFIX
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.16.x
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-04 14:56 UTC by Nadav Vinik
Modified: 2008-03-12 11:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Nadav Vinik 2007-03-04 14:56:20 UTC
I try to compile directly C file of hello world which compile good from the console.

I click on it in nautilus then "open with" and type gcc.

And It not work.

Other information:
$ gcc hello.c 
[nadav@myhost C]$ ls
a.out  hello.c
Comment 1 Nadav Vinik 2007-03-05 07:29:17 UTC
__________a9016009 change:___________________________________________
Removed : 

open with dialog not execute good console programs.

Added:

"open with": gcc does not compile .c file 
_________________________________________________

It's not happen only in gcc but in other or all console program.

I also try on Latex.
Comment 2 Nadav Vinik 2007-03-06 14:05:12 UTC
The bug is also exist in KDE:
http://bugs.kde.org/show_bug.cgi?id=142597
Comment 3 Nadav Vinik 2007-03-20 20:39:15 UTC
I found the problem, "open with" don't change to the current directory.

I create a little script which change to the current directory and when it success compile:
_________________________________________________________________________
#!/bin/bash
echo "The file is" $1
cd `dirname $1`
gcc $1
echo "After execute gcc"
exit 0 
______________________________________________________________________

without the "echo "The file is" $1", The file not compile. 


What is the default directory which "open with" open it?
Comment 4 Nadav Vinik 2007-03-20 20:41:39 UTC
Sorry without the "cd `dirname $1`" the file not compile
Comment 5 André Klapper 2008-03-12 11:52:34 UTC
you will never want to "open" a .c file with gcc, you want to compile it instead. closing as wontfix.