You are not logged in.

#1 2014-12-30 13:24:05

colegui
Member
From: Castellón de la Plana, Spain.
Registered: 2014-07-20
Posts: 64

How to enable kde 4 theme into libreoffice-fresh ?

Some time ago I installed libreoffice-fresh and the file dialogs and icons are "libreoffice-style" rather than "kde-style", i have installed "kdelibs" for KDE desktop integration .. but no result.

Any ideas?, any advice ?

Regards.

Offline

#2 2014-12-30 14:24:43

the_shiver
Member
Registered: 2013-03-27
Posts: 130

Re: How to enable kde 4 theme into libreoffice-fresh ?

do you have the option "Use LibreOffice dialogs" under Options - LibreOffice - General - Open/Save Dialogs set?

Offline

#3 2014-12-30 14:37:47

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: How to enable kde 4 theme into libreoffice-fresh ?

Sometimes ago..., there was special package called libreoffice-kde (if I remember). This package is not icluded in libreoffice-fresh (and still, I think). You can check this: https://aur.archlinux.org/packages/kgtk/ solution, but... PKGBUILD's is corrupted for pacman 4.2. This is upstream link: http://kde-apps.org/content/show.php?content=36077
This solution sometimes works, sometimes not. With some apps works, with another not wink etc.

Offline

#4 2014-12-30 17:54:57

colegui
Member
From: Castellón de la Plana, Spain.
Registered: 2014-07-20
Posts: 64

Re: How to enable kde 4 theme into libreoffice-fresh ?

Hi,

the_shiver wrote:

do you have the option "Use LibreOffice dialogs" under Options - LibreOffice - General - Open/Save Dialogs set?

I have it unset.

bp wrote:

Sometimes ago..., there was special package called libreoffice-kde (if I remember). This package is not icluded in libreoffice-fresh (and still, I think). You can check this: https://aur.archlinux.org/packages/kgtk/ solution, but... PKGBUILD's is corrupted for pacman 4.2. This is upstream link: http://kde-apps.org/content/show.php?content=36077
This solution sometimes works, sometimes not. With some apps works, with another not wink etc.

When i ha've installed libreoffice-fresh, there are an option kdelibs: for KDE desktop integration, i have it installed .. but unfortunately this do not work for me.

In arch wiki i found this:

For Qt integration, install libreoffice-still-kde4 ...

.. but nothing about Qt integration on libreoffice-fresh.

I search on the "bug tracker" of arch and i found this, seems that he solution is patching qt4 ( i'm no sure of this):

https://bugs.archlinux.org/task/41648

I'll try to find more info to fix ... I can only say thanks for the advice guys.

Regards.

Last edited by colegui (2014-12-30 17:55:58)

Offline

#5 2014-12-30 18:22:55

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: How to enable kde 4 theme into libreoffice-fresh ?

Because - as I said - there isn't libreoffice-fresh-kde4 package. Only one I know, it's using kgtk (it works with lo-fresh, too).
There're PKGBUILDs and kgtk.install files for kgtk: http://www.archlike.darmowefora.pl/inde … 161.0.html
It's in Polish, then...
You must copy PKGBUILDs code (it's "Kod" in Polisch) and put it in file named PKGBUILD in some folder, and copy kgtk.install code and put it in file named kgtk.install in this same folder. Then in this folder:

makepkg -sirc

Then use it as it's explain in kde-apps.org.

Offline

#6 2014-12-30 19:06:30

colegui
Member
From: Castellón de la Plana, Spain.
Registered: 2014-07-20
Posts: 64

Re: How to enable kde 4 theme into libreoffice-fresh ?

pb wrote:

Because - as I said - there isn't libreoffice-fresh-kde4 package. Only one I know, it's using kgtk (it works with lo-fresh, too).
There're PKGBUILDs and kgtk.install files for kgtk: http://www.archlike.darmowefora.pl/inde … 161.0.html
It's in Polish, then...
You must copy PKGBUILDs code (it's "Kod" in Polisch) and put it in file named PKGBUILD in some folder, and copy kgtk.install code and put it in file named kgtk.install in this same folder. Then in this folder:

makepkg -sirc

Then use it as it's explain in kde-apps.org.

Thanks i try it... but error to compile:

make: *** No targets specified and no makefile found.  Stop.
==> ERROR: A failure occurred in package().
    Aborting...

Dont' worry @bp, I lost a lot of time and seems to be quite complicate to find a solution

Regards

Last edited by colegui (2014-12-30 19:08:23)

Offline

#7 2014-12-30 21:46:11

sir_lucjan
Member
From: Krakow, Poland
Registered: 2014-11-26
Posts: 19
Website

Re: How to enable kde 4 theme into libreoffice-fresh ?

Try now.

# Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>

pkgname=kgtk
pkgver=0.11.0
pkgrel=3.1
pkgdesc="LD_PRELOAD hack with helper scripts to make gtk and qt-only programs use KDE file dialogs."
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php?content=36077"
license=('GPL')
depends=('kdelibs')
makedepends=('pkgconfig' 'automoc4' 'cmake' 'gettext' 'gtk2>=2.6' 'gtk3>=3.0')
install=kgtk.install
source=(http://kde-apps.org/CONTENT/content-files/36077-KGtk-${pkgver}.tar.bz2)
md5sums=('e5abf37b9f15b301d213ffb881144ddb')

build() {
  
  cd "${srcdir}/KGtk-${pkgver}"

  mkdir -p "${srcdir}/build"

  cd "${srcdir}/build"

  cmake "../KGtk-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr 

}

package() {

 cd "${srcdir}/build"
 
 make || return 1
  
 make DESTDIR=$pkgdir install || return 1
}

Last edited by sir_lucjan (2014-12-30 22:52:19)


Dell Inspiron 15-3542 (3542-2538) || Linux Register User: #536661
[AUR]  [GitHub]

Offline

#8 2014-12-30 21:51:31

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: How to enable kde 4 theme into libreoffice-fresh ?

It was an error in PKGBUILD, sorry. Now it's improve. Try now, or....:
PKGBUILD:

# Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>

pkgname=kgtk
pkgver=0.11.0
pkgrel=3.1
pkgdesc="LD_PRELOAD hack with helper scripts to make gtk and qt-only programs use KDE file dialogs."
arch=('i686' 'x86_64')
url="http://www.kde-apps.org/content/show.php?content=36077"
license=('GPL')
depends=('kdelibs')
makedepends=('pkgconfig' 'automoc4' 'cmake' 'gettext' 'gtk2>=2.6' 'gtk3>=3.0')
install=kgtk.install
source=(http://kde-apps.org/CONTENT/content-files/36077-KGtk-${pkgver}.tar.bz2)
md5sums=('e5abf37b9f15b301d213ffb881144ddb')

build() {
  cd "${srcdir}/KGtk-${pkgver}"

  mkdir -p "${srcdir}/build"

  cd "${srcdir}/build"

  cmake "../KGtk-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
}

package() {

 cd "${srcdir}/build"
 make || return 1
  make DESTDIR=$pkgdir install || return 1
}

and kgtk.install:

post_install() {
    echo ""
    echo "This converts GTK Filedialogs to KDE4 dialogs."
    echo ""
    echo "You can run GTK applications in 2 ways:"
    echo "      A. Call /usr/bin/kgtk-wrapper gimp"
    echo "      B. Create a symbolic link from the wrapper script to"
    echo "         your application, e.g."
    echo ""
    echo "              ln -s /usr/bin/kgtk-wrapper /usr/local/bin/gimp"
    echo ""
    echo "         and make sure you run /usr/local/bin/gimp instead of"
    echo "         /usr/bin/gimp in the future"
    echo ""

    /bin/true
}

pre_remove() {
    echo ""
    echo "If you linked some GTK applications to the wrapper"
    echo "script provided by this package, make sure to"
    echo "remove those links."
    echo ""

    /bin/true
}

Now it builds pkg.tar.xz file:

tar -tvf kgtk-0.11.0-3.1-x86_64.pkg.tar.xz 
-rw-r--r-- root/root       714 2014-12-30 22:48 .PKGINFO
-rw-r--r-- root/root       747 2014-12-30 22:48 .INSTALL
-rw-r--r-- root/root      1465 2014-12-30 22:48 .MTREE
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/bin/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/lib/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/pt_BR/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/fr/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/en_GB/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/zh_CN/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/de/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/cs/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/es/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/it/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/ru/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/ru/LC_MESSAGES/
-rw-r--r-- root/root      1470 2014-12-30 22:48 usr/share/locale/ru/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/it/LC_MESSAGES/
-rw-r--r-- root/root      1106 2014-12-30 22:48 usr/share/locale/it/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/es/LC_MESSAGES/
-rw-r--r-- root/root      1112 2014-12-30 22:48 usr/share/locale/es/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/cs/LC_MESSAGES/
-rw-r--r-- root/root      1149 2014-12-30 22:48 usr/share/locale/cs/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/de/LC_MESSAGES/
-rw-r--r-- root/root      1190 2014-12-30 22:48 usr/share/locale/de/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/zh_CN/LC_MESSAGES/
-rw-r--r-- root/root      1191 2014-12-30 22:48 usr/share/locale/zh_CN/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/en_GB/LC_MESSAGES/
-rw-r--r-- root/root      1199 2014-12-30 22:48 usr/share/locale/en_GB/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/fr/LC_MESSAGES/
-rw-r--r-- root/root      1305 2014-12-30 22:48 usr/share/locale/fr/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/share/locale/pt_BR/LC_MESSAGES/
-rw-r--r-- root/root      1128 2014-12-30 22:48 usr/share/locale/pt_BR/LC_MESSAGES/kdialogd4.mo
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/lib/kgtk/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/lib/kde4/
drwxr-xr-x root/root         0 2014-12-30 22:48 usr/lib/kde4/libexec/
-rwxr-xr-x root/root     81944 2014-12-30 22:48 usr/lib/kde4/libexec/kdialogd4
-rwxr-xr-x root/root     48376 2014-12-30 22:48 usr/lib/kgtk/libkgtk2.so
-rwxr-xr-x root/root     48384 2014-12-30 22:48 usr/lib/kgtk/libkgtk3.so
-rwxr-xr-x root/root      2009 2014-12-30 22:39 usr/bin/kgtk-wrapper

Last edited by pb (2014-12-30 21:53:41)

Offline

Board footer

Powered by FluxBB