Announcement

Collapse
No announcement yet.

Service Menus with Dolphin

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

  • Snowhog
    replied
    Re: Service Menus with Dolphin

    Click, drag, and drop isn't sufficient

    Leave a comment:


  • ScottZ
    replied
    Re: Service Menus with Dolphin

    I am trying to figure out how to make a service menu that will copy files from one split to the other.
    Any ideas?

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Two click wallpaper change
    This was working with the Kubuntu 9.04 / KDE 4.2.4, Kubuntu 9.10 (a6) / KDE 4.3.1

    This is linking to the > Topic: How to change desktop background from dolphin and/or gwenview in kde4?


    > change wallpaper & weather wallpaper
    by JaKi » Thu Aug 27, 2009 3:53 pm

    By now I change my wallpaper through a servicemenu. I have set the wallpaper in that dialog to use ~/background.jpg. And via the picture's servicemenu I copy another file to background.jpg. That works fine except for one exception: the new wallaper only appears after either a relogin or in current session when I open the wallpaper dialog and confirm it without changing anything. So I'd love to call that dialog from the servicemenu.


    by JaKi » Sat Sep 05, 2009 9:33 pm

    I installed the "next wallpaper" widget and it works fine even when the desktop is not in slideshow mode! I now set the wallpaper via my servicemenu (copy the chosen picture to background.jpg) and just have to click on the next wallpaper widget in the panel to let the new wallpaper smoothly blend in (I now use a subdirectory in which background.jpg is the only picture). Nice!

    Making a .desktop file to the ~/.kde/share/kde4/services/ServiceMenus:

    wallpaper.desktop
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=image/*;
    Actions=;SetWallpaper;
    X-KDE-Priority=TopLevel
    X-KDE-Submenu=Image
    
    [Desktop Action SetWallpaper]
    Name=Set Wallpaper
    Icon=folder-image
    Exec=convert "%f" ~/Wallpaper/MyWallpaper.jpg
    Update:
    I'm using the ImageMagic to scale&crop the image:
    Code:
    Exec=convert "%f" -resize 1680x1050^ -gravity center -extent 1680x1050 ~/Wallpaper/MyWallpaper.png

    Making a directory: Wallpaper in the home directory (/home/rog/Wallpaper).

    Click #1
    With the Dolphin > Right clicking the imagefile > Set Wallpaper



    Click #2
    Clicking the plasma-widget-nextwallpaper to show the new wallpaper.

    The wallpaper is changing.


    The "convert is part of the imagemagick. Package: imagemagick.

    man convert:
    NAME

    convert - convert between image formats as well as resize an image, blur, crop, despeckle, dither,
    draw on, flip, join, re-sample, and much more.

    SYNOPSIS
    convert input-file [options] output-file
    The plasma-widget-nextwallpaper is > KDE-Look / Next wallpaper:
    Simple applet that changes the current wallpaper (when in slideshow mode) on command
    It is in the repositories.

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Exif information context menu

    > Exchangeable image file format

    Exiftool > Exif viever
    Exiftool
    With ExifTool you will have the possibility to watch all or part of the EXIF values and to have them sorted by groups or not. ExifTool is a dedicated EXIF viewer, a free command line tool that works under Linux, Mac and Windows.
    The Exiftool is part of the package: libimage-exiftool-perl:
    Library and program to read and write meta information in multimedia files

    ExifTool is a Perl module with an included command-line application
    for reading and writing meta information in image, audio and video
    files. It recognizes EXIF, GPS, IPTC, XMP, JFIF, GeoTIFF, ICC Profile,
    Photoshop IRB, FlashPix, AFCP and ID3 meta information as well as the
    maker notes of many digital cameras including Canon, Casio, FujiFilm,
    JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Olympus/Epson,
    Panasonic/Leica, Pentax/Asahi, Ricoh, Sanyo and Sigma/Foveon.
    Making a .desktop file (show_exif_information.desktop):
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=image/*;
    Actions=;ExifInformation;
    X-KDE-Priority=TopLevel
    X-KDE-Submenu=Image
    
    [Desktop Action ExifInformation]
    Name=Show Exif Information
    Icon=folder-image
    Exec=exiftool -a -u -g1 "%f" > .exif_information.txt && kdialog --textbox .exif_information.txt 640 480 && rm -f .exif_information.txt
    Dropping it to the ~/.kde/share/kde4/services/ServiceMenus and right clicking an image file > Image > Show Exif Information



    A KDialog window is popping up with:

    ---- ExifTool ----
    ExifTool Version Number : 7.30
    ---- File ----
    File Name : 2007-0503srb.jpg
    Directory : /media/sdb3/background
    File Size : 510 kB
    File Modification Date/Time : 2007:05:04 11:12:23
    File Type : JPEG
    MIME Type : image/jpeg
    Image Width : 571
    Image Height : 720
    Encoding Process : Baseline DCT, Huffman coding
    Bits Per Sample : 8
    Color Components : 3
    Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
    ---- JFIF ----
    ...
    ---- IPTC ----
    Application Record Version : 2
    Caption-Abstract : Installation Of Nose Cone/ Forward Skirt Onto Left SRB Segments. (MIX FILE)
    Keywords : SRB, Solid Rocket Booster
    ...
    ++ Lot of information...


    From the PPA repositories (> FAQ: Repositories ) : servicemenu-exif-information

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Paste (copy) over an existing file

    This is linking to the Re: HOWTO : create own (partial) icon theme


    Earlier > Add the whole path including file name into clipboard (klipper)

    This service menu is using the information at the klipper to copy a (image) file over an existing file.


    KDE 3.5

    At the /usr/share/apps/d3lphin/servicemenus/. paste_over.desktop:
    Code:
    [Desktop Entry]
    ServiceTypes=image/*
    Actions=Paste_Over;
    Encoding=UTF-8
    Type=Application
    
    [Desktop Action Paste_Over]
    Type=Application
    Name=Paste Over
    Icon=svn_switch
    Exec=cp `dcop klipper klipper getClipboardContents` "%u"

    KDE 4

    At the /usr/share/kde4/services/ServiceMenus. paste_over.desktop:
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=image/*;
    Actions=Paste_Over
    X-KDE-Priority=TopLevel
    X-KDE-Submenu=OneLiners
    
    [Desktop Action Paste_Over]
    Name=Paste Over
    Icon=svn_switch
    Exec=cp `qdbus org.kde.klipper /klipper org.kde.klipper.klipper.getClipboardContents` "%u"

    Use
    (this is with the KDE 4)

    File #1
    Right click a file > OneLiners > To Klipper
    - file name with the full path is copied to the clipboard.

    File #2
    Right click a image file > OneLiners > Paste Over
    - file, which name+path, is at the klipper is copied over the file #2.
    - file #2 will keep its orginal name, information is copied not the name.

    Pic: Copying images between > Leopard-Style and > Crystal-Project

    Leave a comment:


  • Guest
    Guest replied
    Re: Service Menus with Dolphin

    When I first installed KDE4 and ran Dolphin, the Action/Service Menus were the first things that I noticed were missing. I did not like how Konquer wanted to be the solve all solution to File Management, Media Player, Web Browser, etc... But, the one thing that made handling management of large amounts of files was partly (a big part) to do with the Service Menus. The quest was on to make them work in Dolphin. That led me here.

    While most of the information here helped, it is not complete and unfortunately there isn't much help elsewhere. So instead of naming who gave what good info and just adding mine, I will start from the top so that it is all in one place for the next person with the same problem. Before I begin I would like to thank everyone here for the help (you will probably see some of your info below ).

    Please note, this guide is for Kubuntu 8.10.

    Service Menu files are named:

    <service>.desktop

    where <service> is a whatever the author wants to name the file and is
    not seen in Dolphin. These files are located in various directories:

    System wide (for all users) service menus:
    • Konqueror: /usr/share/apps/konqueror/servicemenus
    • Dolphin: /usr/share/kde4/services/ServiceMenus


    Home folder (for a user) service menus:
    • Konqueror: ~/.kde/share/apps/konqueror/servicemenus
    • Dolphin: ~/.kde/share/kde4/services/ServiceMenus


    The location of the 'services' portion can be found by using the following command
    (only really needed if you are using a different distro or version of Kubuntu):

    bash$ kde4-config --path services

    Desktop files:

    The desktop file format for Dolphin is the same as for Konqueror except for two additional
    lines (below is a comparison):



    Konqueror
    Dolphin


    [Desktop Entry]

    Encoding=UTF-8
    ServiceTypes=all/allfiles
    Actions=Rename

    [Desktop Entry]
    Type=Service
    Encoding=UTF-8
    ServiceTypes=all/allfiles
    Actions=Rename

    X-KDE-ServiceTypes=KonqPopupMenu/Plugin




    Make a copy of the original Konqueror files to a temporary directory and add the lines
    in red to the files. Finally copy them into either your home ServiceMenu directory or the
    system's ServiceMenu directory, then if Dolphin is running close it and reopen it.

    Your newly ported Konqueror Service Menus should now be in your right click menus. 8)

    Hope this helps and thanx again for everyone's
    info here on the subject to bring all this together,

    -GrafXMan

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Removing without Shift + Delete


    This is linking to the Topic: add delete to right click menu and to the Topic: Disabling the trash...


    Note / warning
    I don't use this and i don't recommend to use this :-X !


    KDE 3.5

    Making a remove.desktop file:
    Code:
    [Desktop Entry]
    ServiceTypes=all/allfiles,inode/directory
    Actions=remove;
    Encoding=UTF-8
    Type=Application
    
    [Desktop Action remove]
    Type=Application
    Name=Remove
    Icon=button_cancel
    Exec=rm -f "%U"
    Dropping .desktop file to the /usr/share/apps/d3lphin/servicemenus/


    man rm tells:
    RM(1) User Commands RM(1)

    NAME
    rm - remove files or directories

    SYNOPSIS
    rm [OPTION]... FILE...

    DESCRIPTION
    This manual page documents the GNU version of rm. rm removes each
    specified file. By default, it does not remove directories.

    If a file is unwritable, the standard input is a tty, and the -f or
    --force option is not given, rm prompts the user for whether to remove
    the file. If the response is not affirmative, the file is skipped.

    OPTIONS

    -f, --force
    ignore nonexistent files, never prompt

    KDE 4

    Making a .desktop file (delete.desktop):
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=all/allfiles;inode/directory;
    Actions=remove;
    Encoding=UTF-8
    X-KDE-Priority=TopLevel
    
    [Desktop Action remove]
    Type=Application
    Name=Delete
    Icon=edit-delete
    Exec=rm -f "%U"
    and dropping it to the ~/.kde/share/kde4/services/ServiceMenus/

    Attached Files

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Service menu KArchiver

    This is linking: KDE Ark 4.1 Beta 2


    karchiver (repositories)
    work with compressed files
    With kArchiver, you can create and manipulate tar.gz, tar.bz2, zip, rar...
    archives just with your mouse. You can add files, remove (with undo/redo),
    view one or more files thanks to its multiselection window.

    You can also convert files between various archive formats, for example a
    tar.bz2 to a zip, or even create multi-platform self-extracting archives!

    KArchiver has some wizards that will help you in compiling and
    installing softwares through an interface, and in applying patches. It has
    an archive "browser", that displays archives in the current directory,
    a search tool (to quickly find all archives) and an automatic
    splitter/unsplitter to make a file fit on a floppy or inside an email.
    kArchiver has been made to be intuitive and powerful!
    > KArchiver KDE-Apps.org

    > KArchiver freshmeat


    Command:
    Code:
    karchiver --help
    tells:
    Options:
    -x, --extract <directory> Extract to the specified directory
    --xe, --extractgui Extract and choose directory in a dialog box
    --xh, --extracthere Extract to current directory
    --xa, --extractarchdir Extract to the directory where the archive is
    -c, --compress Make a .tar.gz archive from these files
    --nd, --withoutdcop disable DCOP. Some functions may not work!!
    --nw, --withoutwizard disable the configuration wizard
    --prefered <compressor_extension> Set the default compressor when right-clicking a file.Enter one of these extensions: tar, tar.gz, tar.bz2, zip, rar, lha, gz, bz2

    1) Making text file karchiver.desktop:
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/all
    Actions=CompressHere;ExtractHere;ExtractWhere;
    X-KDE-Submenu=KArchiver
    
    [Desktop Action CompressHere]
    Type=Application
    Name=Compress Here
    Exec=karchiver -c %U
    Icon=archive-insert
    
    [Desktop Action ExtractHere]
    Type=Application
    Name=Extract Here
    Exec=karchiver --xa %u
    Icon=archive-extract
    
    [Desktop Action ExtractWhere]
    Type=Application
    Name=Extract to Where
    Icon=archive-insert-directory
    Exec=karchiver --xe %u

    2) Dropping it in the /usr/share/kde4/services


    3) Testing notes

    - There is not "Extract to subdirectory". There is "Extract to Where" - karchiver will ask where to extract.
    - When compressing more that one file, karchiver will ask archive name, extension (name.zip, name.tar.gz ...) and where to save archive (Browse).

    Attached Files

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Service menus Kubuntu Intrepid Ibex (pre-alpha), KDE 4.1 (Beta 2).


    This is linking: Any first impressions on KDE 4.1 beta for Kubuntu?


    This is using ark; version: 4:3.5.9-0ubuntu3


    Adding Compress Here, Extract Here and Extract to subdirectory service menus:

    1) Making text files:

    myark_compress.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/all
    Actions=compressHere
    
    [Desktop Action compressHere]
    Name=Compress Here
    Exec=ark --add-to %u %u.tar.gz
    Icon=ark
    myark_extract.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=application/*;
    Actions=extractHere
    
    [Desktop Action extractHere]
    Name=Extract Here
    Exec=ark --extract-to %d %u
    Icon=ark
    myark_extract_subdir.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=application/*;
    Actions=ExtractSubdir
    
    [Desktop Action ExtractSubdir]
    Name=Extract to subdirectory
    Icon=ark
    Exec=ark -caption "%c" %i %m --guess-name --extract-to "%d" "%u"

    2) Dropping them in the /usr/share/kde4/services


    3) Testing...
    Attached Files

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    MediaInfo

    This is linking to the Mediainfo application on Linux

    Update (Intrepid + Jaunty)
    Mediainfo and the mediainfo servicemenu can be found from the PPA repositories > Package name contains: mediainfo


    1) Making text file mediainfo.desktop:
    Code:
    [Desktop Entry]
    ServiceTypes=audio/*,video/*,application/vnd.rn-realmedia
    Actions=mediainfo;
    Encoding=UTF-8
    Type=Application
    
    [Desktop Action mediainfo]
    Type=Application
    Name=MediaInfo
    Icon=video
    Exec=mediainfo -f "%U" > .mediainfotemp.txt && kdialog --textbox .mediainfotemp.txt 640 480 && rm -f .mediainfotemp.txt
    2) Dropping it in to the /usr/share/apps/d3lphin/servicemenus/.

    3) Testing:
    Attached Files

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    is the "extract here" error caused by the /sda/temp directory that already exists?
    No, that will give a warning:



    It could be wildcards in the mimetype:
    Code:
    MimeType=application/*;
    With KDE 3.5 that is:
    Code:
    X-KDE-ServiceTypes=application/x-gzip,application/x-lha,application/x-tar...
    but that doesn't work with the KDE 4 (at the moment).

    Tested also with:
    Code:
    MimeType=application/x-gzip,application/x-lha,application/x-tar...

    Leave a comment:


  • dibl
    replied
    Re: Service Menus with Dolphin

    @Rog -- is the "extract here" error caused by the /sda6/temp directory that already exists? Maybe it is refusing to write over the existing /temp.

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Ark (KDE 3.5 package) with the KDE 4

    This is linking to the Topic: KDE4 and Ark

    Using Kubuntu Gutsy Gibbon - Pure KDE4 desktop: Topic: KDE4: Clean installation with live CD


    1) Installing: Ark

    Package ark
    Recommends: ncompress, unzip, zoo, bzip2, p7zip-full
    Suggests: khelpcenter, rar, unrar/unrar-free
    Installing ark +:
    ncompress (4.2.4.0-2)
    p7zip-full (4.51~dfsg.1-1)
    rar (1:3.7b1-2)
    unrar (1:3.7.3-1.1)
    unrar-free (1:0.0.1+cvs20070515-1)
    unzip (5.52-10ubuntu1)
    zoo (2.10-19)

    2) Making text files:

    ark35_compress.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/all
    Actions=compressHere
    
    [Desktop Action compressHere]
    Name=Compress Here
    Exec=/usr/bin/ark --add-to %u %u.tar.gz
    Icon=ark

    ark35_extract.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=application/*;
    Actions=extractHere
    
    [Desktop Action extractHere]
    Name=Extract Here
    Exec=/usr/bin/ark --extract-to %d %u
    Icon=ark

    ark35_extract_subdir.desktop
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=application/*;
    Actions=ExtractSubdir
    
    [Desktop Action ExtractSubdir]
    Name=Extract to subdirectory
    Icon=ark
    Exec=/usr/bin/ark -caption "%c" %i %m --guess-name --extract-to "%d" "%u"

    3) Dropping .desktop files to the /usr/lib/kde4/share/kde4/services/ServiceMenus


    4) Testing - Compress Here:



    Working.


    Extract Here - working


    BUT Extract to subdirectory



    Mime type / file extension problem ?
    service.tar.gz => working but service.txt.tar.gz is not acceptable.

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Symlinks by Click

    KDE 3.5

    By Symlink wiki:
    In computing, a symbolic link (often shortened to symlink and also known as a soft link) consists of a special type of file that serves as a reference to another file or directory. Unix-like operating systems in particular often feature symbolic links.

    With this context menu you can symlink files or folders to the another folder.

    1) Make symlink.desktop:
    Code:
    [Desktop Entry]
    ServiceTypes=all/allfiles,inode/directory
    Actions=Symlink;RootSymlink;
    Encoding=UTF-8
    X-KDE-Submenu=Symlinks by Click
    
    [Desktop Action Symlink]
    Type=Application
    Name=Symlink
    Icon=rebuild
    Exec=ln -s %U `kdialog --getexistingdirectory ~/` 
    
    [Desktop Action RootSymlink]
    Type=Application
    Name=RootSymlink
    Icon=bt
    Exec=kdesu "ln -s" "%U" `kdialog --getexistingdirectory /`
    2) Drop it in to the /usr/share/apps/d3lphin/servicemenus/(or /usr/share/apps/dolphin/servicemenus/. Location depends Dolphin version)

    3) Start linking.


    KDE 4

    Kubuntu Intrepid Ibex (pre-alpha); KDE 4.1 (beta 2)

    1) Making text file symlink.desktop:
    Code:
    [Desktop Entry]
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/all
    Actions=Symlink;RootSymlink;
    X-KDE-Submenu=Symlinks by Click
    
    [Desktop Action Symlink]
    Type=Application
    Name=Symlink
    Icon=edit-redo
    Exec=ln -s %U `kdialog --getexistingdirectory ~/` 
    
    [Desktop Action RootSymlink]
    Type=Application
    Name=RootSymlink
    Icon=edit-undo
    Exec=kdesudo "ln -s" "%U" `kdialog --getexistingdirectory /`

    2) Dropping symlink.desktop to the /usr/share/kde4/services/ServiceMenus or ~/.kde/share/kde4/services/ServiceMenus/

    3) Linking:
    Attached Files

    Leave a comment:


  • Rog131
    replied
    Re: Service Menus with Dolphin

    Add the whole path including file name into clipboard (klipper)

    Links to the Topic: Dolphin Media Name
    http://kubuntuforums.net/forums/inde...opic=3090789.0


    Make dklipper.desktop text file and drop it to the /usr/share/apps/d3lphin/servicemenus/ (or /usr/share/apps/dolphin/servicemenus/)

    dklipper.desktop:
    Code:
    [Desktop Entry]
    ServiceTypes=all/allfiles,inode/directory
    Actions=DKlipper;
    Encoding=UTF-8
    Type=Application
    
    [Desktop Action DKlipper]
    Type=Application
    Name=DKlipper
    Icon=attach
    Exec=dcop klipper klipper setClipboardContents %U

    With the KDE 4 same service menu (/usr/share/kde4/services/ServiceMenus):

    to_klipper.desktop
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=all/all;
    Actions=ToKlipper;
    X-KDE-Priority=TopLevel
    X-KDE-Submenu=OneLiners
    
    [Desktop Action ToKlipper]
    Name=To Klipper
    Icon=klipper
    Exec=qdbus org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents "%U"

    Link:
    Copying data to the clipboard from the command line under KDE
    http://ftp.traduc.org/doc-vf/gazette.../104/104F.html


    Right click file (or folder) > Actions > DKlipper and:

    Preview Dolphin/Klipper
    Attached Files

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X