Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to copy ConEmu.xml.default file at launch #2092

Closed
pooley opened this issue May 8, 2019 · 18 comments
Closed

Failed to copy ConEmu.xml.default file at launch #2092

pooley opened this issue May 8, 2019 · 18 comments

Comments

@pooley
Copy link

pooley commented May 8, 2019

Hi,

I just downloaded the 1.3.11 (latest version) (from the website and also tried the version from GitHub). Downloaded the mini version. Have tried unzip it in a "cmder" folder in different places (program files, then elsewhere like %USERPROFILE% when I read about the issues it might cause) but still the same at launch the cmder launcher answer me this :

Failed to copy vendor/ConEmu.xml.default file to vendor/conemu-maximus5/ConEmu.xml!

Not a big techie but I use this software at work and never had this kind of error (not the same version at work tho) but this time i put the exe in the bin folder.

I'm on a zenbook s13 (16Gb version) if this can help.

@daxgames
Copy link
Member

daxgames commented May 11, 2019

I have never seen this issue. I have seen the opposite, when trying to copy %cmder_root%/vendor/conemu-maximus5/ConEmu.xml to c:/program files/cmder/config.

My guess is you originally expanded into c:/program files/cmder then moved cmder to %userprofile% bringing the permissions issue along with it.

Delete what you have. Download and expand a fresh copy into %userprofile%.

@daxgames
Copy link
Member

Also what do you mean ' but this time i put the exe in the bin folder.'?

@daxgames
Copy link
Member

daxgames commented Jun 1, 2019

@pooley ???

@pooley
Copy link
Author

pooley commented Jun 3, 2019 via email

@daxgames daxgames closed this as completed Jun 3, 2019
@RajeshSamson
Copy link

I had solved my problem by just adding the root directory instead of Cmder/bin.

@Zolfikaar
Copy link

I have same problem for while, and just now i solve it by copying the file (ConEmu.xml.default) that the app can't copy
Capture
to the direction he want (/conemu-maximus5/)
Capture2

@renatosviana
Copy link

renatosviana commented Jan 20, 2020

I had the problem and solved opening it as Administrator.

@daxgames
Copy link
Member

@renatosviana just dont put it in c:\program files.

@yassine-klilich
Copy link

I had the same issue, I have just moved the Cmder folder from C:\Program Files to C:\ and everything went well.

@yildizmy
Copy link

yildizmy commented Jan 10, 2021

In addition to move the cmder folder to C:\ directory, you may also need to apply the following settings in order to run it as administrator for each start.

cmder - run as admin

@KodiakFR
Copy link

Hi, it's late but look your Window Defender, for me it blocked the copy files.

@prox108
Copy link

prox108 commented Apr 22, 2022

I already solved the problem, it happens that you are copying the Cmder.exe file directly from the folder (Control + C and then paste on the desktop), the solution was to Right Click on the file, select "Create Shortcut" and accept to create it in the desktop.

Solucion1
Solucion2

@melanke
Copy link

melanke commented Dec 5, 2022

I feel this problem could be avoided if there were an installer for cmder instead of a zip

@daxgames
Copy link
Member

daxgames commented Dec 5, 2022

This is going to sound harsh. It is not meant to be. It is just an explanation.

It's not a problem if you don't unzip the zip where we tell you not to in the README.md

There is a reason Cmder should go in your user profile and not a 'public' readable Administrator only writeable folder.

The config folder could potentially contain user private stuff depending on what you put in it since Cmder is intended to be portable.

User private stuff should never be in C:\Program Files or any other public readable folder.

If you insist on putting it where we tell you not to, you can avoid the issue by launching Cmder with a command line arg that redirects the config folder to a user writeable path.

Cmder /c `%userprofile%\cmder

@18hyacinthe
Copy link

18hyacinthe commented Nov 26, 2024

Me I just do (right click on the folder cmder) after go to the security option !

Just modify to allow settings (permission) for actual user ! And save it !

@chrisant996
Copy link
Contributor

chrisant996 commented Nov 26, 2024

Me I just do (right click on the folder cmder) after go to the security option !

Just modify to allow settings (permission) for actual user ! And save it !

That makes it possible for viruses to infect the files there.

I realize that putting Cmder elsewhere also makes it possible for viruses to infect the files.

My point is that generally speaking, it's not a safe practice to grant write permissions to any \Program Files\ subdirectory. It's not a habit to get into.

@DRSDavidSoft
Copy link
Contributor

Best would be to make sure that only the /config dir is writable, and preferably move it to AppData per user, and add some logic in Cmder where if the conditions a) installed in Program Files and b) AppData\cmder\config exists, load it from there.

I assume @cmderdev/core might not agree with adding "installation" support to Cmder and keep it an portable-only app, but I believe adding this feature would be nice. I use Cmder on my machines in a totally non-portable fashion, as I don't move it using a USB stick or cloud sync. I've just "installed" it in Program Files, using @18hyacinthe's approach, even though @chrisant996's concerns are totally valid.

It's a bad idea to give un-necessary permissions to the Program Files folder, but in this case, you either need to keep Cmder in the root C:\ or some dir like C:\apps which doesn't look right to me. 🤷🏻‍♂️ Hopefully this will be addressed in something like #2788.

@daxgames
Copy link
Member

No installer suport or special logic is required to use Cmder in a non portable way see the README.md sepcifically the /c [path] command line arg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests