From 866072435f03d2b0738717c28283a1165cd7c0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 8 Jan 2008 22:47:59 +0000 Subject: [PATCH] When running with relative path, Zeta complains: "Don't change the current working directory before creating the BApplication.". Should work this way. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23291 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/codycam/CodyCam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/codycam/CodyCam.cpp b/src/apps/codycam/CodyCam.cpp index 353c8d7a8d..3a83a3a6a1 100644 --- a/src/apps/codycam/CodyCam.cpp +++ b/src/apps/codycam/CodyCam.cpp @@ -124,6 +124,7 @@ CodyCam::CodyCam() fPort(0), fVideoControlWindow(NULL) { + chdir("/boot/home"); } @@ -922,7 +923,6 @@ ControlWindow::QuitRequested() int main() { - chdir("/boot/home"); CodyCam app; app.Run(); return 0;