X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fmain.C;h=bba65b7651c30b0a21a78af301b8f279775e6645;hb=6c0c8bd0e577001d1cc18c6c27d58e62f58a6bff;hp=1df7ff000662e95091655442cfe2bb70c0664fe7;hpb=8596efc40093b9581099e7c72d8be3857e390242;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/main.C b/cinelerra-5.0/cinelerra/main.C index 1df7ff00..bba65b76 100644 --- a/cinelerra-5.0/cinelerra/main.C +++ b/cinelerra-5.0/cinelerra/main.C @@ -22,8 +22,8 @@ #include "batchrender.h" #include "bcsignals.h" #include "edl.h" +#include "file.inc" #include "filexml.h" -#include "fileserver.h" #include "filesystem.h" #include "language.h" #include "langinfo.h" @@ -91,25 +91,6 @@ public: }; -void get_exe_path(char *result) -{ -// Get executable path - pid_t pid = getpid(); - char proc_path[BCTEXTLEN]; - int len = 0; - result[0] = 0; - sprintf(proc_path, "/proc/%d/exe", pid); - if((len = readlink(proc_path, result, BCTEXTLEN)) >= 0) - { - result[len] = 0; -//printf("Preferences::Preferences %d %s\n", __LINE__, result); - char *ptr = strrchr(result, '/'); - if(ptr) *ptr = 0; - } - -} - - int main(int argc, char *argv[]) { // handle command line arguments first @@ -367,7 +348,6 @@ int main(int argc, char *argv[]) BatchRenderThread *thread = new BatchRenderThread; thread->start_rendering(config_path, batch_path); - delete MWindow::file_server; break; }