unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#53008] [PATCH 0/3] Add plugins to Thunar
@ 2022-01-04 15:39 Simon Streit
  2022-01-04 15:50 ` [bug#53008] [PATCH 1/3] gnu: Add thunar-archive-plugin Simon Streit
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Simon Streit @ 2022-01-04 15:39 UTC (permalink / raw)
  To: 53008

Hello,

I've been trying to package some plugins for Thunar.  Unfortunately these
plugins are not loaded, or are not found in Thunar, and so far I can't see
why.  There are no errors to begin with.  A guess would be missing path
declarations from, maybe, pkg-config.  Though the libs are residing in
../lib/thunarx-3, where they should be.

I'd be very happy if someone else wants to have a look at these patches
to see if they can be made workable.


Thank you!
Simon




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#53008] [PATCH 1/3] gnu: Add thunar-archive-plugin.
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
@ 2022-01-04 15:50 ` Simon Streit
  2022-01-04 15:50 ` [bug#53008] [PATCH 2/3] gnu: Add thunarx-python Simon Streit
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Simon Streit @ 2022-01-04 15:50 UTC (permalink / raw)
  To: 53008

* gnu/packages/xfce.scm (thunar-archive-plugin): New variable.
---
 gnu/packages/xfce.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index c08a2349dc..e665dacd61 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -792,6 +792,32 @@ (define-public thunar-volman
 and import the new pictures from your camera.")
     (license gpl2+)))
 
+(define-public thunar-archive-plugin
+  (package
+    (name "thunar-archive-plugin")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://archive.xfce.org/src/thunar-plugins/"
+                           name "/" (version-major+minor version)
+                           "/" name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "059ikda4hig1iqk0g5kqc4p95chj0z1ljhl5qjrlw4l8lf3gm0mz"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config intltool))
+    (inputs
+     (list exo
+           thunar
+           gtk+
+           libxfce4ui))
+    (home-page "https://www.xfce.org/")
+    (synopsis "Adds archive operations to the Thunar file context menus")
+    (description "This plugin allows you to create and extract archive files
+using the file context menus in the Thunar file manager.")
+    (license gpl2+)))
+
 (define-public xfwm4
   (package
     (name "xfwm4")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#53008] [PATCH 2/3] gnu: Add thunarx-python.
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
  2022-01-04 15:50 ` [bug#53008] [PATCH 1/3] gnu: Add thunar-archive-plugin Simon Streit
@ 2022-01-04 15:50 ` Simon Streit
  2022-01-04 15:51 ` [bug#53008] [PATCH 3/3] gnu: Add thunar-shares-plugin Simon Streit
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Simon Streit @ 2022-01-04 15:50 UTC (permalink / raw)
  To: 53008

* gnu/packages/xfce.scm (thunarx-python): New variable.
---
 gnu/packages/xfce.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index e665dacd61..9e1f0c2225 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -818,6 +818,34 @@ (define-public thunar-archive-plugin
 using the file context menus in the Thunar file manager.")
     (license gpl2+)))

+(define-public thunarx-python
+  (package
+    (name "thunarx-python")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://archive.xfce.org/src/bindings/"
+                           name "/" (version-major+minor version)
+                           "/" name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "08lz9pvx006a2fypg2q38p61jbhy0yswz8cizlxpiwfcqsvhpnln"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list exo
+           thunar
+           python
+           python-pygobject
+           libxfce4ui
+           gtk+))
+    (home-page "https://gitlab.xfce.org/bindings/thunarx-python")
+    (synopsis "Python Bindings for Thunar")
+    (description "These bindings allow one to create python plugins
+for Thunar.")
+    (license gpl2+)))
+
 (define-public xfwm4
   (package
     (name "xfwm4")
--
2.34.0




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#53008] [PATCH 3/3] gnu: Add thunar-shares-plugin.
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
  2022-01-04 15:50 ` [bug#53008] [PATCH 1/3] gnu: Add thunar-archive-plugin Simon Streit
  2022-01-04 15:50 ` [bug#53008] [PATCH 2/3] gnu: Add thunarx-python Simon Streit
@ 2022-01-04 15:51 ` Simon Streit
  2022-01-08 22:26 ` [bug#53008] [PATCH 0/3] Add plugins to Thunar Ludovic Courtès
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Simon Streit @ 2022-01-04 15:51 UTC (permalink / raw)
  To: 53008

* gnu/packages/xfce.scm (thunar-shares-plugin): New variable.
---
 gnu/packages/xfce.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 9e1f0c2225..0baecc215a 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -846,6 +846,34 @@ (define-public thunarx-python
 for Thunar.")
     (license gpl2+)))

+(define-public thunar-shares-plugin
+  (package
+    (name "thunar-shares-plugin")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://archive.xfce.org/src/thunar-plugins/"
+                           name "/" (version-major+minor version)
+                           "/" name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "182j8jl91735004hbl0i2xxga4r6fk03srfl6g87czkjm9y8q7fw"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config intltool))
+    (inputs
+     (list exo
+           thunar
+           thunarx-python
+           gtk+
+           libxfce4ui))
+    (home-page "https://www.xfce.org/")
+    (synopsis "Quickly share a folder using Samba from Thunar")
+    (description
+     "The Thunar Shares Plugin allows you to quickly share a folder using
+Samba from Thunar without requiring root access.")
+    (license gpl2+)))
+
 (define-public xfwm4
   (package
     (name "xfwm4")
--
2.34.0




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#53008] [PATCH 0/3] Add plugins to Thunar
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
                   ` (2 preceding siblings ...)
  2022-01-04 15:51 ` [bug#53008] [PATCH 3/3] gnu: Add thunar-shares-plugin Simon Streit
@ 2022-01-08 22:26 ` Ludovic Courtès
  2022-03-13 23:57 ` [bug#53008] Re: bug#53008: " tumashu
  2023-08-25 10:15 ` 宋文武 via Guix-patches via
  5 siblings, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2022-01-08 22:26 UTC (permalink / raw)
  To: Simon Streit; +Cc: 53008

Hi,

Simon Streit <simon@netpanic.org> skribis:

> I've been trying to package some plugins for Thunar.  Unfortunately these
> plugins are not loaded, or are not found in Thunar, and so far I can't see
> why.  There are no errors to begin with.  A guess would be missing path
> declarations from, maybe, pkg-config.  Though the libs are residing in
> ../lib/thunarx-3, where they should be.

Can you check in Thunar itself how those plugins are searched for and
loaded?

If it’s plain ‘dlopen’, then they’ll have to be in $LD_LIBRARY_PATH.

HTH,
Ludo’.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#53008] Re: bug#53008: [PATCH 0/3] Add plugins to Thunar
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
                   ` (3 preceding siblings ...)
  2022-01-08 22:26 ` [bug#53008] [PATCH 0/3] Add plugins to Thunar Ludovic Courtès
@ 2022-03-13 23:57 ` tumashu
  2022-03-15  1:14   ` [bug#53008] " tumashu
  2023-08-25 10:15 ` 宋文武 via Guix-patches via
  5 siblings, 1 reply; 9+ messages in thread
From: tumashu @ 2022-03-13 23:57 UTC (permalink / raw)
  To: 53008

I think it is controled by:  THUNARX_DIRECTORY.

```
./thunarx-provider-factory.c\0158:  dp = g_dir_open (THUNARX_DIRECTORY, 0, NULL);
./thunarx-provider-module.c\0180:  path = g_build_filename (THUNARX_DIRECTORY, type_module->name, NULL);
./Makefile\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
./Makefile.in\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
./Makefile.am\05:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
```

While THUNARX_DIRECTORY is defined in Makefile:

```
AM_CPPFLAGS = \
	-I$(top_srcdir)							\
	-DG_LOG_DOMAIN=\"thunarx\"					\
	-DTHUNARX_COMPILATION						\
	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
	$(PLATFORM_CPPFLAGS)
```

So, I think we should deal with this like xfce-panel-plugins.patch:

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/xfce4-panel-plugins.patch

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#53008] Re: Re: bug#53008: [PATCH 0/3] Add plugins to Thunar
  2022-03-13 23:57 ` [bug#53008] Re: bug#53008: " tumashu
@ 2022-03-15  1:14   ` tumashu
  2022-03-18  6:27     ` [bug#53008] " tumashu
  0 siblings, 1 reply; 9+ messages in thread
From: tumashu @ 2022-03-15  1:14 UTC (permalink / raw)
  To: 53008@debbugs.gnu.org

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

I do a hack in my own config like below: seem to work when install plugin in system configure :-)



```
(define-public thunar-geeguix
  (package
    (inherit thunar)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-thunarx-directory
            (lambda _
              (substitute* "thunarx/Makefile.in"
                (("THUNARX_DIRECTORY=.*")
                 (string-append "THUNARX_DIRECTORY="
                                "\\\"/run/current-system/profile/lib/thunarx-3\\\" \\\n"))))))))))

```





















At 2022-03-14 07:57:13, "tumashu" <tumashu@163.com> wrote:
>I think it is controled by:  THUNARX_DIRECTORY.
>
>```
>./thunarx-provider-factory.c\0158:  dp = g_dir_open (THUNARX_DIRECTORY, 0, NULL);
>./thunarx-provider-module.c\0180:  path = g_build_filename (THUNARX_DIRECTORY, type_module->name, NULL);
>./Makefile\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>./Makefile.in\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>./Makefile.am\05:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>```
>
>While THUNARX_DIRECTORY is defined in Makefile:
>
>```
>AM_CPPFLAGS = \
>	-I$(top_srcdir)							\
>	-DG_LOG_DOMAIN=\"thunarx\"					\
>	-DTHUNARX_COMPILATION						\
>	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>	$(PLATFORM_CPPFLAGS)
>```
>
>So, I think we should deal with this like xfce-panel-plugins.patch:
>
>https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/xfce4-panel-plugins.patch

[-- Attachment #2: Type: text/html, Size: 2687 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#53008] Re:Re: Re: bug#53008: [PATCH 0/3] Add plugins to Thunar
  2022-03-15  1:14   ` [bug#53008] " tumashu
@ 2022-03-18  6:27     ` tumashu
  0 siblings, 0 replies; 9+ messages in thread
From: tumashu @ 2022-03-18  6:27 UTC (permalink / raw)
  To: 53008@debbugs.gnu.org

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

I have added a issue to xfce:


https://gitlab.xfce.org/xfce/thunar/-/issues/748

















At 2022-03-15 09:14:15, "tumashu" <tumashu@163.com> wrote:

I do a hack in my own config like below: seem to work when install plugin in system configure :-)



```
(define-public thunar-geeguix
  (package
    (inherit thunar)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-thunarx-directory
            (lambda _
              (substitute* "thunarx/Makefile.in"
                (("THUNARX_DIRECTORY=.*")
                 (string-append "THUNARX_DIRECTORY="
                                "\\\"/run/current-system/profile/lib/thunarx-3\\\" \\\n"))))))))))

```





















At 2022-03-14 07:57:13, "tumashu" <tumashu@163.com> wrote:
>I think it is controled by:  THUNARX_DIRECTORY.
>
>```
>./thunarx-provider-factory.c\0158:  dp = g_dir_open (THUNARX_DIRECTORY, 0, NULL);
>./thunarx-provider-module.c\0180:  path = g_build_filename (THUNARX_DIRECTORY, type_module->name, NULL);
>./Makefile\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>./Makefile.in\0699:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>./Makefile.am\05:	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>```
>
>While THUNARX_DIRECTORY is defined in Makefile:
>
>```
>AM_CPPFLAGS = \
>	-I$(top_srcdir)							\
>	-DG_LOG_DOMAIN=\"thunarx\"					\
>	-DTHUNARX_COMPILATION						\
>	-DTHUNARX_DIRECTORY=\"$(libdir)/thunarx-$(THUNARX_VERSION_API)\"	\
>	$(PLATFORM_CPPFLAGS)
>```
>
>So, I think we should deal with this like xfce-panel-plugins.patch:
>
>https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/xfce4-panel-plugins.patch

[-- Attachment #2: Type: text/html, Size: 3347 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#53008: [PATCH 0/3] Add plugins to Thunar
  2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
                   ` (4 preceding siblings ...)
  2022-03-13 23:57 ` [bug#53008] Re: bug#53008: " tumashu
@ 2023-08-25 10:15 ` 宋文武 via Guix-patches via
  5 siblings, 0 replies; 9+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-08-25 10:15 UTC (permalink / raw)
  To: Simon Streit; +Cc: 53008-done

Simon Streit <simon@netpanic.org> writes:

> Hello,
>
> I've been trying to package some plugins for Thunar.  Unfortunately these
> plugins are not loaded, or are not found in Thunar, and so far I can't see
> why.  There are no errors to begin with.  A guess would be missing path
> declarations from, maybe, pkg-config.  Though the libs are residing in
> ../lib/thunarx-3, where they should be.
>
> I'd be very happy if someone else wants to have a look at these patches
> to see if they can be made workable.
>
>
> Thank you!
> Simon


Hello, sorry for the delay..  I applied the thunarx-python patch now, as
other was already added, and it works!

Closing, thanks!




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-08-25 10:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 15:39 [bug#53008] [PATCH 0/3] Add plugins to Thunar Simon Streit
2022-01-04 15:50 ` [bug#53008] [PATCH 1/3] gnu: Add thunar-archive-plugin Simon Streit
2022-01-04 15:50 ` [bug#53008] [PATCH 2/3] gnu: Add thunarx-python Simon Streit
2022-01-04 15:51 ` [bug#53008] [PATCH 3/3] gnu: Add thunar-shares-plugin Simon Streit
2022-01-08 22:26 ` [bug#53008] [PATCH 0/3] Add plugins to Thunar Ludovic Courtès
2022-03-13 23:57 ` [bug#53008] Re: bug#53008: " tumashu
2022-03-15  1:14   ` [bug#53008] " tumashu
2022-03-18  6:27     ` [bug#53008] " tumashu
2023-08-25 10:15 ` 宋文武 via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).