You are here

Pidgin: Not correctly parsing Command-Line variables

4 posts / 0 new
Last post
Gizmokid2005
Gizmokid2005's picture
Offline
Last seen: 3 months 3 weeks ago
Developer
Joined: 2007-01-17 19:24
Pidgin: Not correctly parsing Command-Line variables

I've done lots of messing and testing to get this to work, and here's the issue.

I've had pidgin crashing a lot, probably a plugin but I'm trying to debug and find out.

To get pidgin to log, you need to use the following switches: "-d 2>&1 > PATH:\To\debug.log when launching pidgin.

The NSIS launcher somehow doesn't pass these correctly. It will create the debug.log, where you have specified, but it still opens a command prompt window and doesn't write any output to the debug.log.

I've verified that this does work with a local copy of pidgin, launching with those parameters. I even went and modified the launcher to include "-d 2>&1 > debug.log" and found the same issue.

Not sure how this could/needs to be solved, but it certainly isn't working now Sad

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Conflicting Options

If you modded the launcher and it has the same issue, it could be that the settings used for making it portable don't work properly with logging. The other option is to see if it is the UPX compression. Copy your local copy of Pidgin into App\Pidgin and rename pidgin.exe to pidgin-portable.exe. Then try it again.

Sometimes, the impossible can become possible, if you're awesome!

Gizmokid2005
Gizmokid2005's picture
Offline
Last seen: 3 months 3 weeks ago
Developer
Joined: 2007-01-17 19:24
Just so it's here, what we

Just so it's here, what we talked about in IRC.

The launcher has the same issues with or without quotes, and even using the same string that I use in my batch file to launch pidgin the way it should be with debug, I have the same issue I mentioned.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Never going to work

This will never work - redirecting stdout to a file (>) is a command-line extension, so it won't work with NSIS's Exec command - it'll pass it to the program rather than saving the contents of stdout to the file as you want. The reason it won't work with PidginPortable.exe is because it doesn't catch and feed the contents of stdout.

The only real way you can do this is something like:

nsExec::ExecToStack $EXECSTRING
Pop $0
FileOpen $1 $EXEDIR\Data\debug.log w
FileWrite $1 $0
FileClose $1

Unfortunately, with the standard NSIS_MAX_STRLEN value of 1024 it's unlikely to be very useful (it'll only catch the first KB of debug messages).

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Log in or register to post comments