<div dir="ltr">Hey Bebo,<div><br></div><div>GtkRadiant should have write permissions to the directory it is installed in. This is really the easiest way you are going to package GtkRadiant for a particular distribution.</div>
<div><br></div><div>I believe that packaging systems should provide the operating environment that a piece of software requires, and not the other way around. I'm not sure these lines of code you are pointing to are actually a problem for what you are trying to do, that looks like BSP code to me. But I'm sure there are plenty of other places that would need to be changed if we were going to try and make radiant run from a readonly directory.</div>
<div><br></div><div>The thing is, none of the developers seem very interested in helping with that effort. It would likely destabilize the codebase, introduce new bugs for no obvious advantage. We've already put significant effort in being able to provide a set of binaries that run on a variety of Linux systems, and can be distributed in a zip, without having to deal with distribution specific package requirements.</div>
<div><br></div><div>I believe this strategy is a much better approach for GtkRadiant, and while I wouldn't actively prevent someone from doing distribution-specific packaging if they want to spend their energy doing so, it seems like the other developers active on the project generally agree with me.</div>
<div><br></div><div>Cheers,</div><div>TTimo</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 5:11 AM, bebo_sudo <span dir="ltr"><<a href="mailto:bebo.sudo@gmail.com" target="_blank">bebo.sudo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all folks,<br>
I still am going to write about packaging gtkradiant for fedora.<br>
<br>
Referring to the last mail I sent at the ML about the permission errors [1], I searched in github the relative code [2] and I think the "bug" is around the 71th line of this [3] or this [4] file (which are equal?):<br>

...<br>
<br>
        /* write it */<br>
        Sys_Printf( "Writing %s\n", filename );<br>
        Sys_FPrintf( SYS_VRB, "(%d bytes)\n", bspEntDataSize );<br>
        file = fopen( filename, "w" );<br>
<br>
        if ( file == NULL ) {<br>
                Error( "Unable to open %s for writing", filename );<br>
        }<br>
<br>
<br>
I'm not a C programmer and do not know how difficult it would be to create a shortcut (a symlink, or something else) to the user home instead of writing in the containing folder, but if there's someone who's able to solve this issue I would appreciate it very much.<br>

<br>
Thanks anyway,<br>
bebo<br>
<br>
<br>
[1]: <a href="http://icculus.org/pipermail/gtkradiant/2013-February/011841.html" target="_blank">http://icculus.org/pipermail/<u></u>gtkradiant/2013-February/<u></u>011841.html</a><br>
[2]: <a href="https://github.com/TTimo/GtkRadiant/search?q=+unable+open+writing&type=Code" target="_blank">https://github.com/TTimo/<u></u>GtkRadiant/search?q=+unable+<u></u>open+writing&type=Code</a><br>
[3]: tools/quake3/q3map2/<u></u>exportents.c<br>
[4]: tools/urt/tools/quake3/q3map2/<u></u>exportents.c<br>
______________________________<u></u>_________________<br>
Gtkradiant mailing list<br>
<a href="mailto:Gtkradiant@icculus.org" target="_blank">Gtkradiant@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/gtkradiant" target="_blank">http://icculus.org/mailman/<u></u>listinfo/gtkradiant</a><br>
</blockquote></div><br></div>