unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Wojtek Kosior via <help-guix@gnu.org>
To: Christian Gelinek <christian.gelinek@mailbox.org>
Cc: help-guix@gnu.org
Subject: Re: Package renpy broken?
Date: Fri, 28 Oct 2022 17:29:12 +0200	[thread overview]
Message-ID: <20221028172912.6806f9e2@koszkonutek-tmp.pl.eu.org> (raw)
In-Reply-To: <1b808a95-2a93-b3d1-00a5-4cf458d718c6@mailbox.org>

[-- Attachment #1: Type: text/plain, Size: 3593 bytes --]

Hi Christian,

I know nothing about Ren'Py and TFD but it seems there's an
approachable workaround - you can modify the package to patch
launcher/game/choose_directory.rpy to have a suitable directory used.

First, I'd suggest you look at how some existing packages use the
`substitute*` macro[1]. Then, look at how packages are defined[2] and
how to *inherit* from another package[3].

Once you grasp a bit of it, you should be able to define your own
variant of the Ren'Py package. One without the bug.

I realize it's probably a bit discouraging to come to a new distro and
find out you need to learn packaging to utilize it. Indeed, I wish I
had more time to prepare such modified package for you. Yet, honestly,
Guix is a geeky package manager - you can only benefit from its
super-powers once you're yourself Guix geek ¯\_(ツ)_/¯

Good luck :)

Wojtek

P.S. If TFD are really free as in freedom, it'd be cool to have the
package fixed to actually use them. But that might be more involving
than merely patching a path...

[1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/game-development.scm?id=779757047997d315d899b40c199be3709115cce4#n171
[2] https://guix.gnu.org/manual/en/html_node/Defining-Packages.html#Defining-Packages
[3] https://guix.gnu.org/en/cookbook/en/guix-cookbook.html#Inheritance


-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F  4B42 4BC5 221C 5A79 FD1A

Meet Kraków saints!           #3: blessed Bernardyna Maria Jabłońska
Poznaj świętych krakowskich!  #3: błogosławiona Bernardyna Maria Jabłońska
https://pl.wikipedia.org/wiki/Bernardyna_Maria_Jabłońska
-- (sig_end)


On Thu, 27 Oct 2022 06:58:58 +0000
Christian Gelinek <christian.gelinek@mailbox.org> wrote:

> Dear Guix community,
> 
> I couldn't get the GUI `renpy-launcher` GUI to do anything useful.  It 
> says "The selected projects directory is not writable" for any 
> meaningful action I attempted.  Under "preferences" -> General, there is 
> a Projects Directory setting which (for me) displays as "Not Set".  
> Clicking that again shows the above error.
> 
> I'm new to Ren'Py (and GuixSD), so there may be a way of specifying this 
> directory on the command line or via a config file somewhere, but I 
> haven't found it.
> 
> Looking at the code at 
> https://github.com/renpy/renpy/blob/master/launcher/game/choose_directory.rpy 
> it seems that it tries to import the `_renpytfd` Python package, which - 
> if successful - would be used to display a `selectFolderDialog`.  
> Otherwise, it would try to use the parent directory and if that fails, 
> the directory specified in config.renpy_base, which is set to the empty 
> string. Interestingly the empty string should resolve to the current 
> directory, but that doesn't seem to be the case in my `renpy-launcher` 
> context.
> 
> Another thing I found is that `_renpytfd` is being removed from the 
> renpy package in 
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/game-development.scm#n1347 
> which probably is the reason for why I can't set the path in the GUI.  
> The comment says "drop _renpytfd, as there are missing sources" but 
> https://sourceforge.net/projects/tinyfiledialogs/files/ seems to 
> disagree with that.  Additionally, there is a Guix package 
> rust-tinyfiledialogs which I expect to also (at least indirectly) depend 
> on tinyfiledialogs, which is not a package.
> 
> Where to go from here?
> 
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2022-10-28 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-27  6:58 Package renpy broken? Christian Gelinek
2022-10-28 15:29 ` Wojtek Kosior via [this message]
2022-10-29  9:42   ` Christian Gelinek
2022-10-29 21:58     ` Wojtek Kosior via
2022-10-29 14:25 ` Luis Felipe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221028172912.6806f9e2@koszkonutek-tmp.pl.eu.org \
    --to=help-guix@gnu.org \
    --cc=christian.gelinek@mailbox.org \
    --cc=koszko@koszko.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).