Re: [agl-dev-community] afm-util run not running my application #automotive #help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Vele,

Applications have to manage 2 directories:
 - the root directories is intended to be like read only and contains
   the installed files
 - the working directory where living application put its read write
   data

afb-daemon provides the environment variable AFB_ROOTDIR to retrieve
the first one.

Hope it helps
Best regards
José Bollo

On Thu, 29 Oct 2020 09:39:36 -0700
"Vele Tosevski" <vele@xxxxxxxxxxxxxxxx> wrote:

> Hey guys,
> 
> I am trying to run an application that I have installed.  In my
> application, there is an init function that takes a path to a config
> file *relative to the application root directory.* When I run the
> application with afb-daemon and --workdir set, it runs since the work
> directory function points afb-daemon to the application root
> directory and thus, the file is found. If I run afb-daemon without
> workdir set (meaning that it just takes on the value of pwd), it does
> not run, giving a File Not Found -100 error for my config file. I am
> assuming that afm-util uses an absolute path to an application
> directory.  For some reason though, it does not let my application
> find my config file.
> 
> A few solutions I have brainstormed:
> 1. I can always change my relative path in my application to an
> absolute path to my config file. However, I do not want to do this
> for obvious reasons. 2. I can add to my path in my application some
> sort of environment variable that afm-util uses across the board for
> mapping to the AGL application directory.  However, I am not sure if
> such a variable exists.
> 
> Any help would be appreciated!
> 
> Thanks,
> Vele
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8799): https://lists.automotivelinux.org/g/agl-dev-community/message/8799
Mute This Topic: https://lists.automotivelinux.org/mt/77891684/2167316
Mute #automotive:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/automotive
Mute #help:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/help
Group Owner: agl-dev-community+owner@xxxxxxxxxxxxxxxxxxxxxxxxx
Unsubscribe: https://lists.automotivelinux.org/g/agl-dev-community/leave/4543822/883735764/xyzzy [list-automotive-discussions82@xxxxxxxxxxx]
-=-=-=-=-=-=-=-=-=-=-=-






[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux