Registered Member
|
hi forum
i would appreciate a possibility in Dolphin to enable autoplay of audio- or videofiles when mouse hovering over it, instead of open an external mediaplayer everytime. Remember that Mate used to have that option, as far as i know KDE does not, or not entirely (only in certain open file dialogs). what i found is: https://www.kubuntuforums.net/showthread.php?63185-Auto-preview-audio-and-video-files-in-the-Dolphin-and-Konqueror but in the process of compiling Dolphin with a tuned tooltipmanager it got stucked: missing a lot of KF5 -tools !? >>according to google KDE-Frameworks is missed and installable only by a PPA or compiling should be with src-build.... I'm not sure about all that and wether this whole error-prone project is worth the candle? Has anyone another idea or a clue? Any future perspectives relating to enabling of that feature?
Last edited by kinoe on Wed Oct 26, 2016 3:29 pm, edited 1 time in total.
Reality is frequently inaccurate.
|
Registered Member
|
KDE Forums Brainstorm - Dolphin Video audio play hovering the file: viewtopic.php?f=83&t=92269
Meanwhile There could be alternative versions of the KDE applications - a user can install them to the home or to the /opt/. The drill, at here, with the Dolphin is: 1) Get the sources - using distribution sources (pkgbuild) 2) Edit the sources - adding the option to play on mouse over and put the konsole to the left/right/top/bottom. 3) Build - building an Arch Dolphin package. 4) Install - Installing the package. 5) Use - adding the alternative Dolphin to the KDE Menu To build an alternative version of the Dolphin:
Enhanced Dolphin: YouTube clip: https://youtu.be/Zu07hNtJFwg
Last edited by Rog131 on Wed Oct 26, 2016 6:28 pm, edited 1 time in total.
|
Registered Member
|
@Rog131
thanks for your quick response I had gone partially through that process you described, until that point of missing apps/tools:
Gettext>> YES (installed): gettext 0.19.7-2ubuntu3 Qt5> NO only: qt5-default Qt5Core>> NO only: libqt5core5a Qt5Concurrent>> NO only: libqt5concurrent5 Qt5Widgets>> NO only: libqt5widgets5 Qt5Gui>> NO only: libqt5gui5 Qt5DBus>> NO only: libqt5dbus5 KF5KCMUtils > NO only: libkf5kcmutils-data & libkf5kcmutils5 KF5DocTools > NO only: lib... KF5Init > NO only: lib... KF5NewStuff > NO only: lib... KF5CoreAddons > NO only: lib... KF5I18n > NO only: lib... KF5DBusAddons > NO only: lib... KF5Bookmarks > NO only: lib... KF5Config > NO only: lib... KF5KIO > NO only: lib... KF5Parts > NO only: lib... KF5Solid > NO only: lib... KF5IconThemes > NO only: lib... KF5Completion > NO only: lib... KF5TextWidgets > NO only: lib... KF5WindowSystem > NO only: lib... KF5Notifications > NO only: lib... KF5Crash > NO only: lib... KF5 > NO only: lib... Phonon4Qt5>> YES phonon4qt5 4:4.9.0-4+16.04+build13 PythonInterp> NO, installable via ubuntu repositories but 'python-svipc'??? Lacking a lot! Is it a whole package thats missing here? KDE-Framework?
Reality is frequently inaccurate.
|
Registered Member
|
As the Neon is using the Debian packaging system then the easiest way to get the build dependencies should be with the:
command. Dolphin:
More from Debian Building Tutorial: https://wiki.debian.org/BuildingTutorial --> https://wiki.debian.org/BuildingTutoria ... pendencies |
Registered Member
|
If you enable dolphin's "Informations" sidebar though (in the menu "View"->Sidebars), you can play audio and video files by clicking on the small play button in the preview:
That's not exactly on mouse hover, but at least saves you from opening an external application... And it's built-in, no need to patch dolphin and build it yourself. |
Registered Member
|
@Rog131
thanks again! but how to build and install to /opt/KF5 with the DEBIAN-building commands (debuild -b -uc -us)? What is the equivalent to -DCMAKE_INSTALL_PREFIX=/opt/KF5 -DCMAKE_PREFIX_PATH=/opt/KF5 ?? @wolfi323 thanks for your hint. This is helpful and i will make do with it if compiling doesn't work. But in general i'm curious how to in linux and in different linux distros and last but not least i love the feature of autoplay at mouseover. I think its very handy when working with sound collections.
Reality is frequently inaccurate.
|
Registered Member
|
IF If you want to wrap the alternative version of the Dolphin to the Debian package you will need to: - Rename your package - there can be only one 'dolphin' named package installed. - write a 'debian/rules' file with support to the cmake options. There are many Debian packaging guides. Picking one: Debian New Maintainers' Guide - https://www.debian.org/doc/manuals/maint-guide/ BUT You could use the 'apt-get build-dep' to install the Debian/Ubuntu/Neon/... build dependencies and then compile/install your alternative version with generic commands:
Example: Unpacking the dolphin-16.08.2.tar.xz and (making wanted editions) cd to /dolphin-16.08.2/
The make step is long, 30,5 KiB, so only pasting the start and the end:
Installing:
|
Registered Member
|
@ Rog132
you made my day! and it works nearly flawlessly Thanks a bundle man! You really want to share your knowledge and you know how to with best effort!
Reality is frequently inaccurate.
|
Registered Member
|
Since i moved to Arch Linux Plasma, i'd like to run the process of building dolphin kf5+ again! But i don't know what are the dependencies in Arch and wether its possible with Arch Linux Plasma at all?
Maybe meanwhile someone knows an new alternate possibility for mouse-over?
Reality is frequently inaccurate.
|
Registered Member
|
With the Arch Linux it is a bit easier: Creating packages - https://wiki.archlinux.org/index.php/creating_packages -> You will need the 'base-devel'. An example: Browsing to the https://www.archlinux.org/packages/extr ... 4/dolphin/ -> https://git.archlinux.org/svntogit/pack ... es/dolphin and downloading the PKGBUILD. Executing:
to get source and the make dependencies - output:
When you are building for yourself you could bypass the error. Editing the PKGBUILD: Changing the:
to
My name is 'dolphin-kf5git' Note ! Building an alternative version and having both 'dolphin' and ' dolphin-yourname' installed. and changing:
to
Note ! Installing to the /opt/ not to the /usr/. Unpacking the dolphin-17.04.2.tar.xz to the /src/dolphin-yourname-17.04.2 and making the /src/build/. Editing the /src/dolphin-17.04.2/src/views/tooltips/tooltipmanager.cpp and adding other Dolphin extras... After edits executing:
As result there should be dolphin-yourname-17.04.2-1-x86_64.pkg.tar.xz Installing the alternate Dolphin with command:
The alternate dolphin can be launched with command:
or/and added to the KDE menu. Testing ... Full image:http://i.imgur.com/1xSj2EY.png seems to work. |
Registered Member
|
thanks again for your answer Rog131,
forgive me my ignorance but i'm a bit puzzled with tho whole process, though i've been through it in the past. The order you listed once was: 1) Get the sources - using distribution sources (pkgbuild) --->> I downloaded: dolphin 17.04.2-1 pkg and PKGBUILD and also dolphin source: https://github.com/KDE/dolphin 2) Edit the sources - adding the option to play on mouse over and put the konsole to the left/right/top/bottom.--->> Sorry I forgot how to do that! In https://www.kubuntuforums.net/showthread.php?t=63185 i don't see the wood for the trees... Could you please give me a hint? 3) Build - building an Arch Dolphin package. 4) Install - Installing the package. 5) Use - adding the alternative Dolphin to the KDE Menu -->those last 3 steps should be clear Thanks |
Registered Member
|
With the Dolphin 17.04.2 I have been using patch - tooltipmanager.diff:
It will execute the /usr/local/bin/MouseOverAction.sh when the mouse is over the icon and kill it when the mouse is moving off. An patch example: The konsole at the top level Dolphin directory, at here: ../src/dolphin-kf5git-17.04.2/. The patch is, at here, /media/sda3/Dolphin/Aur/dolphin 17.04.2/tooltipmanager.diff. Dry/test run:
Real deal:
Few examples of the /usr/local/bin/MouseOverAction.sh at here:
The ffplay 3 is, at here, flickering so using the ffplay2.8 - available from the Arch package ffmpeg2.8 https://www.archlinux.org/packages/extr ... ffmpeg2.8/ Another example of the MouseOverAction.sh script:
It is using the MPlayer to preview the Video files. Full image: http://imgur.com/9PRADoZ About Window Rules Setting up the preview with the Dolphin: https://www.kubuntuforums.net/showthrea ... post340393 |
Registered Member
|
thank you Rog131 !!
i'm looking forward to apply it. |
Registered Member
|
Sorry Rog131,
i'm feeling really stupid ...but... i don't get it. If i understood you right the approach is as follows: 1. downloading the PKGBUILD of dolphin 17.04.2-1 2.
otherwise makepkg aborts 3. then: Editing the PKGBUILD
and
4. Unpacking the dolphin-17.04.2.tar.xz to the /src/dolphin-myname-17.04.2 and making the /src/build/ ---> isn't makepkg missing before this? So in the end there would be these two packages: dolphin-17.04.2 and dolphin-myname-17.04.2 but i don't quite get that kind of nesting: which dolphin into what /src/..? and what is meant by "making the /src/build/"? Simply creating that directory? 5. Editing the /src/dolphin-17.04.2/src/views/tooltips/tooltipmanager.cpp and adding other Dolphin extras 6.
7. Installing the alternate Dolphin with command:
Please correct me where i'm wrong and thanks for your patience |
Registered Member
|
I'm simply letting the 'makepkg' to die. I only want the source and the dependencies.
The /usr/bin/makepkg is part of the package 'pacman'. At here: 1) Get the source and the build dependencies - i.e:
2) Edit the source and the PKGBUILD (package name and the installation path) 3) Build the package from the edited source:
Example: At the same directory as the PKGBUILD file: 1) Get the source and make needed directories:
2) Changing directory to ./src/dolphin-example-17.04.2/. Patching. Changing directory back to the same directory as the PKGBUILD file:
Editing the PKGBUILD:
3) Build the package from the edited source with the edited PKGBUILD:
Note ! At this I have been using the cli. You could use KDE tools - Ark etc. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]