This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with aaphoto service menu

Tags: None
(comma "," separated)
User avatar
stiw47
Registered Member
Posts
4
Karma
0

Problem with aaphoto service menu

Sun Jan 24, 2016 10:15 am
Hello.

I am on "semi-fresh" install of Arch 64bit with Plasma 5 (semi-fresh >> still building my system).
I installed aaphoto via AUR - Auto Adjust Photo, simle comand line tool for rotating, flipping, resizing and adjusting of image.
I make a service menu for aaphoto for Dolphin, tis is my aaphoto.desktop file (stored in ~/.local/share/kservices5/ServiceMenus/):

Code: Select all
[Desktop Entry]
Type=Service
Name=aaphoto
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,image/*
Actions=Correction;FlipX;FlipY;
MimeType=mif;PNM;pgm;ppm;bmp;ras;JP2;JPC;jpg;jpeg;png
Icon=image-x-applix-graphics
X-KDE-Submenu=Auto Adjust Photo

[Desktop Action Correction]
Name=Automatic photo adjusting
Name[de]=Automatische Foto Korrektur
Exec=aaphoto -a %f
Icon=image-x-applix-graphics

[Desktop Action FlipX]
Name=Mirror image horizontally
Name[de]=Bild spiegeln horizontal
Exec=aaphoto --flipx %f
Icon=image-x-applix-graphics

[Desktop Action FlipY]
Name=Mirror image vertically
Name[de]=Bild spiegeln vertikal
Exec=aaphoto --flipy %f
Icon=image-x-applix-graphics

[Desktop Action Rotate90]
Name=Rotate 90 Degrees
Exec=aaphoto --rotate90 %f
icon=image-x-applix-graphics

[Desktop Action Rotate180]
Name=Rotate 180 Degrees
Exec=aaphoto --rotate180 %f
Icon=image-x-applix-graphics

[Desktop Action Rotate270]
Name=Rotate 270 Degrees
Exec=aaphoto --rotate270 %f
Icon=image-x-applix-graphics


I have a problem, Dolphin shows only first 3 submenu groups (adjusting, flipX and flipY), and don't show second 3 submenu groups (rotate90, rotate180, and rotate270):

Image

Even if I delete first 3 submenu groups (adjusting, flipX and flipY), still don't show second 3 submenu groups (rotate90, rotate180, and rotate270).
I tryed all above aaphoto comands from terminal, and all of this working well.

Where I am wrong? Thanks in advance.
User avatar
stiw47
Registered Member
Posts
4
Karma
0

Re: Problem with aaphoto service menu

Sun Jan 24, 2016 11:38 am
Sorry, it was my bad. I missed

Code: Select all
Rotate90;Rotate180;Rotate270


In "Actions" line, in first group:

Code: Select all
[Desktop Entry]
Type=Service
Name=aaphoto
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,image/*
Actions=Correction;FlipX;FlipY;Rotate90;Rotate180;Rotate270
MimeType=mif;PNM;pgm;ppm;bmp;ras;JP2;JPC;jpg;jpeg;png
Icon=image-x-applix-graphics
X-KDE-Submenu=Auto Adjust Photo


Problem is solved.

Btw, can someone direct me to some good tutorials/instructions for creating custom service menus? I want to create more service menus, and want to understand what are Actions, MimeTypes, etc. and how to configure those, but don't want to be boring and ask people on forum for ewery single part. Thanks.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]