Double Commander

Official forum
It is currently Fri May 24, 2013 10:06 pm

All times are UTC + 3 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Jun 17, 2012 7:36 pm 
Offline

Joined: Mon Jun 04, 2012 2:44 am
Posts: 29
If I double click on an .exe file (or if I press Enter on it) is different than if I right-click -> "Open".

Example: I have Foobar installed. I also have another portable Foobar on my drive in its own folder.
If I try to open the portable Foobar.exe in DC, the installed Foobar.exe starts up instead.

This does not happen in Windows Explorer or any other file manager I tried. (But I can open the portable Foobar.exe from DC if I right click -> "Open" the file.)

I'm not sure if this is a bug or intended behavior (if it is, why?), but I would prefer if it behaved like Windows Explorer.


Top
 Profile  
 
PostPosted: Tue Jul 10, 2012 7:55 pm 
Offline

Joined: Mon Jun 04, 2012 2:44 am
Posts: 29
I also noticed this interferes with AutoHotkey and UAC working properly.. That is, it makes the UAC dialog unclickable until you select it from the taskbar. (If you open an .exe that brings up UAC from DC.)


Top
 Profile  
 
PostPosted: Tue Jul 10, 2012 9:00 pm 
Offline

Joined: Mon Apr 16, 2012 9:00 pm
Posts: 226
I think via Enter DC try to execute process, but action on open was written in registry. I think it's not right - to use associates in registry for .exe files.

_________________
ОС: Win 7 Home Basic / Pro, 0.5.5 (on of latest build).


Top
 Profile  
 
PostPosted: Mon Aug 13, 2012 10:45 am 
Offline

Joined: Mon Jun 04, 2012 2:44 am
Posts: 29
Another program which doesn't play nice with this is Comodo (or at least the Defense+ part of it), which interprets it as possibly dangerous behavior.
This is what happens when trying to run either an .exe from DC or a file that gets opened by the associated .exe (in this case a .rtf file):
http://i47.tinypic.com/2i0ww0.png
I have to allow this for every new .exe.

Is this something that can be changed in DC?


Top
 Profile  
 
PostPosted: Tue Aug 14, 2012 7:32 am 
Offline

Joined: Wed Nov 09, 2011 6:15 am
Posts: 96
It needs to add DC to Computer Security Policy - Defence+ Rules


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 5:45 pm 
Offline

Joined: Mon Jun 04, 2012 2:44 am
Posts: 29
Sure. I was asking about the issue of this thread in general, if it's something that can be changed, to make DC behave like Explorer and other file managers when opening files.


Top
 Profile  
 
PostPosted: Fri Aug 17, 2012 6:54 am 
Offline

Joined: Wed Nov 09, 2011 6:15 am
Posts: 96
Ah, yes. DC executing function uses registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\foobar2000.exe
It needs to change the way of run.

In uOSUtils.pas string 316:
Result := (ShellExecuteW(0, nil, PWChar(wFileName), PWChar(wParams), PWChar(wWorkDir), SW_SHOW) > 32);

If change it to this:
Result := (ShellExecuteW(0, nil, PWChar(wWorkDir+'\'+wFileName), PWChar(wParams), PWChar(wWorkDir), SW_SHOW) > 32);
it works, but may be it is wrong ))


Top
 Profile  
 
PostPosted: Sat Aug 18, 2012 5:19 pm 
Offline
Site Admin
User avatar

Joined: Sat Mar 15, 2008 1:08 pm
Posts: 2001
I think fixed. Try revision: 4942.

_________________
Windows XP SP3
Linux Mint Xfce Edition


Top
 Profile  
 
PostPosted: Sun Aug 19, 2012 10:29 pm 
Offline

Joined: Mon Jun 04, 2012 2:44 am
Posts: 29
Yeah, I think it's working fine now. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 3 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Get Double Commander at SourceForge.net. Fast, secure and Free Open Source software downloads