Announcement

Collapse
No announcement yet.

Service Menus with Dolphin

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rog131
    replied
    Re: Service Menus with Dolphin

    Pack With Ark

    Link to Topic: Rar not working
    http://kubuntuforums.net/forums/inde...opic=3089986.0


    Dolphin don't have Konquerors "Compress As" menu. Simple way to add it to the Dolphin:

    Make "ark_pack.desktop" text file. Put there:
    Code:
    [Desktop Entry]
    ServiceTypes=all/allfiles,inode/directory
    Actions=Rar;Zip;7z
    Encoding=UTF-8
    X-KDE-Submenu=Pack With Ark
    
    [Desktop Action Rar]
    Name=Rar
    Icon=kimproxyoffline
    Exec=ark --add-to %U %U.rar 
    
    [Desktop Action Zip]
    Name=Zip
    Icon=knewstuff
    Exec=ark --add-to %U %U.zip
    
    [Desktop Action 7z]
    Name=7z
    Icon=kimproxyonline
    Exec=ark --add-to %U %U.7z
    Drop it to the /usr/share/apps/dolphin/servicemenus/ (or /usr/share/apps/d3lphin/servicemenus/).

    You need Ark, rar, zip and p7zip-full.

    Package: ark
    Description: graphical archiving tool for KDE
    Ark is a graphical program for managing various archive formats within the
    KDE environment. Archives can be viewed, extracted, created and modified
    from within Ark.
    .
    The program can handle various formats such as tar, gzip, bzip2, zip, rar and
    lha (if appropriate command-line programs are installed).
    .
    Ark can work closely with Konqueror in the KDE environment to handle archives,
    if you install the Konqueror Integration plugin available in the konq-plugins
    package.
    Package: rar
    Description: Archiver for .rar files
    This is the RAR archiver from Eugene Roshal. It supports multiple volume
    archives and damage protection. It can also create SFX-archives. There are
    versions which run on DOS, Windows (3.1x,95,NT), FreeBSD, BSDI.
    .
    This program is shareware and you must register it after 40 days of use.
    .
    Homepage: http://www.rarlabs.com/
    Package: zip
    Description: Archiver for .zip files
    This is InfoZIP's zip program. It produces files that are fully
    compatible with the popular PKZIP program; however, the command line
    options are not identical. In other words, the end result is the same,
    but the methods differ. :-)
    .
    This version supports encryption.
    Package: p7zip-full
    Description: 7z and 7za file archivers with high compression ratio
    p7zip is the Unix port of 7-Zip, a file archiver that archives with
    very high compression ratios.
    .
    p7zip-full provides:
    - /usr/bin/7za
    a standalone version of the 7-zip tool that handles 7z archives
    (implementation of the LZMA compression algorithm) and some other
    formats.
    - /usr/bin/7z
    not only does it handle 7z but also ZIP, Zip64, CAB, RAR, ARJ,
    GZIP, BZIP2, TAR, CPIO, RPM, ISO and DEB archives. 7z compression
    is 30-50% better than ZIP compression.
    .
    p7zip provides 7zr, a light version of 7za.
    .
    Homepage: http://p7zip.sourceforge.net/

    Note
    This is quick & dirty. It works but...
    - There is no name query: foo.foo -> foo.foo.rar
    - Multiple files will be named as foo1, foo2, foo3 -> foo3.rar


    Attached Files

    Leave a comment:


  • Fenyx
    replied
    Re: Service Menus with Dolphin

    This is an interesting workaround for D3lphin's shortcomings. Thanks for the howto. Let's see if we can get it inside Kubuntu by default for Hardy, IF we still have D3lphin enabled by default there.

    Leave a comment:


  • Rog131
    started a topic Service Menus with Dolphin

    Service Menus with Dolphin

    About Dolphin:

    Dolphin File manager
    http://enzosworld.gmxhome.de/
    Dolphin is a file manager for KDE focusing on usability.

    Dolphin is not intended to be a competitor to Konqueror: Konqueror acts as universal viewer being able to show HTML pages, text documents, directories and a lot more, whereas Dolphin focuses on being only a file manager. This approach allows to optimize the user interface for the task of file management.

    The KDE 3 version of Dolphin is in beta stage, but provides already most features for daily usage. Currently Dolphin gets ported for KDE 4.0.

    The final version 1.0 of Dolphin for KDE 3 was originally planned for end of December 2006. In November Dolphin got a lot of support from Aaron J. Seigo and it has been decided to port Dolphin to KDE 4 as soon as possible. As there are not enough resources to maintain a KDE 3 version in parallel, the last release of Dolphin for KDE 3 has been 0.8.


    D3lphin 0.9:

    As mentioned on the roadmap, no official maintenance release for KDE 3 will be released anymore. But the good news is that Marcel Juhnke decided to do further bugfixing for the KDE 3 version of Dolphin and also included features like a second sidebar. As this is no official release, this project is named D3lphin and can be downloaded at marrat.homelinux.org. Please don't submit any bug reports for D3lphin to the KDE bug database and contact Marcel directly instead.

    Using Konqueror's Service Menus in the Dolphin

    You can use Konqueror servicemenus in the Dolphin (some of them). You only need to link/copy Konqueror service menus (.desktop files) from Konqueror servicemenu folder to the Dolphin servicemenu folder:

    KDE 3.5.X

    System wide (for all users) service menus:
    Konqueror: /usr/share/apps/konqueror/servicemenus/
    Dolphin: /usr/share/apps/dolphin/servicemenus/
    D3lphin: /usr/share/apps/d3lphin/servicemenus/

    Home folder (for a user) service menus:
    Konqueror: ~/.kde/share/apps/konqueror/servicemenus/
    Dolphin: ~/.kde/share/apps/dolphin/servicemenus/
    D3lphin: ~/.kde/share/apps/d3lphin/servicemenus/


    KDE 4

    From Bug 156476: dolphin should have action/service menus like konqueror has
    http://bugs.kde.org/show_bug.cgi?id=156476

    ------- Additional Comment #6 From David Faure 2008-01-24 13:48 -------
    Dolphin and konqueror (in kde4) support the exact same servicemenus. However the syntax is indeed NOT
    the kde3 syntax. Well, the syntax is pretty much the same but the location where to install the desktop files has changed.
    kdesdk/scripts/qt4/Porting mentions the changes:

    Servicemenus for konqueror and dolphin have moved to services/ServiceMenus/.
    To port kde3 servicemenus you need to:
    -> change installation rule so that it installs to ${SERVICES_INSTALL_DIR}/ServiceMenus
    -> add KonqPopupMenu/Plugin to the ServiceTypes line
    Development/Tutorials/Creating Konqueror Service Menus
    http://techbase.kde.org/Development/..._Service_Menus
    Where the Servicemenus Live

    Servicemenus are defined using .desktop files, which are the same kind of files that are used to create entries in the K Menu or on the KDE desktop. These servicemenu files are found in $KDEHOME/share/services/ServiceMenus, the directory KDE was installed to or any directory listed in the $KDEDIRS environment variable.

    In the case of my home machine that means that servicemenu files can be found in the following places:

    /opt/kde4/share/services/ServiceMenus/
    /usr/share/services/ServiceMenus/
    /home/aaron/.kde4/share/services/ServiceMenus/

    Kubuntu Intrepid Ibex (alpha 2) , KDE 4.1 (beta 2). Konsole command tells:
    Code:
     kde4-config --path services
    /home/rog/.kde/share/kde4/services/:/usr/share/kde4/services/
    that is

    System wide (for all users) service menus:
    /usr/share/kde4/services/ServiceMenus

    Home folder (for a user) service menus:
    /home/<USER>/.kde/share/kde4/services/ServiceMenus

    <USER> is your username !

    Specific folder actions
    Kubuntu forums topic: https://www.kubuntuforums.net/showth...folder-actions


    Service Menu Editor

    > KDE-Apps.org
    Depends on: KDE 4.x

    Description:
    KDE Service Menu Editor is a simple way of editing the right-click menus that you see when using Dolphin. It has simple but flexible way of selecting the "mime types" (type of file) that the menu should appear on. Then adding the menu is as simple as typing a name and the command to be run.

    Example
    Topic: Using Dolphin to batch process images like Konqueror?
    http://kubuntuforums.net/forums/inde...opic=3087984.0

    Easy way to make symlinks: Symlink by Click. Another way is simply copy desktop files.


    Some servicemenus might need a bit tuning. Kubicle tells:
    There are a few problems with servicemenus in dolphin (d3lphin), but the rootactions servicemenu can be 'tinkered with' to work better with dolphin:
    More: http://kubuntuforums.net/forums/inde...97261#msg97261

    Kubicle's Root Actions Servicemenu
    http://www.kde-apps.org/content/show...?content=48411
    Root Actions servicemenu is a replacement/alternative for the default Edit-as-root servicemenu in kubuntu.

    ----Notes for Dolphin users-------------------------------------------
    The service menu should work on KDE4 dolphin, though you might wish to edit rootactionsfolders.desktop and replace 'konqueror' with 'dolphin'

    KDE3 dolphin (d3lphin) has a few issues with servicemenus, so I've included a d3lphin friendly version of the menu in the download.

    New Service Menus for Dolphin

    From Creating Konqueror Service Menus
    http://developer.kde.org/documentati...vicemenus.html
    Introduction

    In KDE-speak a "servicemenu" is a special entry that appears in Konqueror's context menu depending on the file(s) that are selected. You may have seen them in action without even knowing it. For instance, if you have the KDE file archive utility "ark" installed you will see a menu entry to "Extract here..." whenever you right click on a tarball or zip file. The option to "Extract here..." is a servicemenu.

    Creating new servicemenus is very simple, requiring nothing more than an idea and a text editor. You don't have to be a programmer or a KDE wizard to make them.
    Background:
    theread told in the Topic: Preview enlargement in Dolphin
    http://kubuntuforums.net/forums/inde...opic=3088673.0
    Another useful facility missing from Dolphin is the right click menu with the move to: and the copy to: options on it. As far as I can see in Dolphin the only way to do it is to open the to and from directories and drag the file across, which is a pain if you have a lot open on the desktop at the time.
    Here is simple servicemenu for Dolphin. It will copy/move files to the destination folder (you choose destination folder from KDialog directory tree)

    Make text file copy_move_to.desktop file:
    Code:
    [Desktop Entry]
    ServiceTypes=all/allfiles,inode/directory
    Actions=CopyTo;MoveTo
    Encoding=UTF-8
    X-KDE-Submenu=Copy and Move To
    
    [Desktop Action CopyTo]
    Name=Copy To
    Icon=folder_man
    Exec=cp %U `kdialog --getexistingdirectory ~/`
    
    [Desktop Action MoveTo]
    Name=Move To
    Icon=folder_red_open
    Exec=mv %U `kdialog --getexistingdirectory ~/`
    Drop it to the /usr/share/apps/dolphin/servicemenus/ or /usr/share/apps/d3lphin/servicemenus/. That's it !


    Links:

    Topic: GtoK: .desktop files
    http://kubuntuforums.net/forums/inde...opic=3093180.0

    Dolphin File manager
    http://enzosworld.gmxhome.de/

    Topic: Using Dolphin to batch process images like Konqueror?
    http://kubuntuforums.net/forums/inde...opic=3087984.0

    Topic: Dolphin crashes
    http://kubuntuforums.net/forums/inde...opic=3086993.0

    Root Actions Servicemenu
    http://www.kde-apps.org/content/show...?content=48411

    Creating Konqueror Service Menus
    http://developer.kde.org/documentati...vicemenus.html

    Shell Scripting with KDE dialogs
    http://developer.kde.org/documentati...dialog/t1.html

    Topic: Disable Trash / KGPG Default Setting / Context Menu
    http://kubuntuforums.net/forums/inde...opic=3090842.0


    Previews:
    Attached Files
    Last edited by Rog131; Mar 22, 2014, 10:20 AM.

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X