[Gambas-user] External library location
Gianluigi
bagonergi at gmail.com
Wed Sep 5 10:23:24 CEST 2018
I would like to clarify my thinking in this absurd "querelle" about the tmp
folder.
We are (+/-) programmers and we do a lot of testing.
If the folders created by our tests all end up in the home folder, maybe
hidden, after a while the folder would be a delirium.
I think it's a good suggestion to send our tests to a folder that really
exists in all filesystems and where the code can be tested (by everyone,
except those who have an administrator who has read the Debian manual :-) )
and that after while is cleaned up, I would recommend everyone to adopt
this system.
I don't think anyone can use this folder instead of User.Home &/ "." &
Application.Name.
I also add this, when, for help, we send our code to other programmers, if
the code provides for the creation of a folder, it is good education to
create it in tmp.
Regards
Gianluigi
Il giorno mar 4 set 2018 alle ore 23:54 Jussi Lahtinen <
jussi.lahtinen at gmail.com> ha scritto:
> Of course, but example Debian manual recommends mounting /tmp with noexec.
>
> Jussi
>
> On Wed, Sep 5, 2018 at 12:39 AM Gianluigi <bagonergi at gmail.com> wrote:
>
>> As far as I know tmp is a directory open to the world.
>> In all unix filesystems, this is the default setting: drwxrwxrwt.
>> That said, the administrator is free to do what he wants.
>>
>> Regards & Goodnight
>> Gianluigi
>>
>> Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen <
>> jussi.lahtinen at gmail.com> ha scritto:
>>
>>> Yes, tmp is short for temporary, but as I said, it doesn't necessarily
>>> have execution permissions. Thus it should be used only for temporary data,
>>> not for executables.
>>>
>>> Jussi
>>>
>>> On Tue, Sep 4, 2018 at 11:36 PM Gianluigi <bagonergi at gmail.com> wrote:
>>>
>>>> Hi Jussi,
>>>> what you say about /tmp doesn't convince me and I don't know.
>>>> I think it's normal to use /tmp for examples, so it doesn't get dirty
>>>> on the filesystem.
>>>> There are many programs that "park" their temporary files in tmp.
>>>>
>>>> Regards
>>>> Gianluigi
>>>>
>>>> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen <
>>>> jussi.lahtinen at gmail.com> ha scritto:
>>>>
>>>>> Using library keyword is good idea, but using /tmp is not, because in
>>>>> some systems it doesn't have executing permissions.
>>>>> "/home/<user>/.local/" is better option.
>>>>>
>>>>> Jussi
>>>>>
>>>>>
>>>>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi <bagonergi at gmail.com> wrote:
>>>>>
>>>>>> A link to what writes vuott, he of these things is master.
>>>>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330
>>>>>>
>>>>>> Regards
>>>>>> Gianluigi
>>>>>>
>>>>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi <
>>>>>> bagonergi at gmail.com> ha scritto:
>>>>>>
>>>>>>> It is actually explained.
>>>>>>> However if the question is "I can indicate the Data folder with
>>>>>>> Application.Path" the answer is as always *no*.
>>>>>>> Copy the library from Data to a real folder such as */tmp* as
>>>>>>> explained in a lesson.
>>>>>>>
>>>>>>> Regards
>>>>>>> Gianluigi
>>>>>>>
>>>>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz <
>>>>>>> mckaygerhard at gmail.com> ha scritto:
>>>>>>>
>>>>>>>> err no one of the links answer the question of Martin
>>>>>>>>
>>>>>>>> he ask for path not "how to implement"
>>>>>>>>
>>>>>>>> i research at the two links and the wiki, *and (apart of the very
>>>>>>>> dense redaction without separations pauses or paragraphs) *there's
>>>>>>>> no such related info about path loading of so external libraryes
>>>>>>>>
>>>>>>>>
>>>>>>>> Lenz McKAY Gerardo (PICCORO)
>>>>>>>> http://qgqlochekone.blogspot.com
>>>>>>>>
>>>>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi <bagonergi at gmail.com>:
>>>>>>>>
>>>>>>>>> Certainly, I don't know how to do it because I don't know C, but
>>>>>>>>> here [0] is explained how to do it.
>>>>>>>>> Regards
>>>>>>>>> Gianluigi
>>>>>>>>> [0] http://gambaswiki.org/wiki/howto/extern
>>>>>>>>> [1]
>>>>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so
>>>>>>>>>
>>>>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia <
>>>>>>>>> tercoide at hotmail.com> ha scritto:
>>>>>>>>>
>>>>>>>>>> Hi:
>>>>>>>>>>
>>>>>>>>>> It is possible to use a .so file located at Application.path
>>>>>>>>>> instead of
>>>>>>>>>> usr/lib/ ?
>>>>>>>>>>
>>>>>>>>>> How to set that up?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Saludos
>>>>>>>>>>
>>>>>>>>>> Ing. Martin P Cristia
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ----[ Gambas mailing-list is hosted by
>>>>>>>>>> https://www.hostsharing.net ]----
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>>>>> ]----
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>>>> ]----
>>>>>>>>
>>>>>>>
>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>>> ]----
>>>>>>
>>>>>
>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>>> ]----
>>>>>
>>>>
>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>>
>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180905/656852b5/attachment-0001.html>
More information about the User
mailing list