Better integration in KDE4

Issue #1270 open
Former user created an issue

Hi,

I'm using tortoisehg for weeks now and I'm using KDE4.

It is a very usefull program, but with integration in dolphin or in kde in general it will increase usability an ease of use !

Is it possible to add kde right click button integration ?

Regards

Comments (16)

  1. Yuya Nishihara

    but with integration in dolphin or in kde in general it will increase usability an ease of use !

    Could you give us an example of SCM integration in dolphin? Is there SVN plugin, for example? I want to check it if it's easy or not.

  2. Steve Borho

    Hmm, I couldn't find any obvious Python bindings for integrating with Dolphin, all I found were PyKDE bindings for accessing KDE functionality.

    Here's an idea. I had started to write a generic file browser in GTK, but this didn't get very far (it was very much like pulling teeth). PyQt has classes that are designed for exactly this purpose so someone could write a Qt 'thg browse' in not a lot of time, and hopefully debug menuthg in the process.

  3. Yuya Nishihara

    Hmm, I couldn't find any obvious Python bindings for integrating with Dolphin, all I found were PyKDE bindings for accessing KDE functionality.

    I consider it's okay for dolphin integration to depend PyKDE. Standard KDE environment already depends on it.

    I'm not sure about the separate 'thg browse' application. It won't be easy to write useful file manager, I think.

  4. Former user Account Deleted

    Hi,

    You can see the kdesvn actions integration as dolphin action (aka service menu).

    You can find all kde service menu in the directory /usr/share/kde4/services/ServiceMenus of your kde4 installation. I think it is the best way to integrate hgtk without too much code changes...

    Regards

  5. newbeewan

    Hi,

    I manage to create link for the directory type (inode file association), the working command is : cd "%f";hgtk log

    Because hgtk command line doesn't accept any path :(

    Regards

  6. diogopicarra

    I tried this service menu and none of the commands are executed. I'am trying to make this work but no luck so far. I also installed nautilus, and tortoisehg for nautilus and also didn't worked. But hgtk runs from the command line. I'am using OpenSuse 11.3 with kde 4.5. %d is deprecated.

    You should read this: http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

  7. Former user Account Deleted

    Hi,

    First of all, thanks very much for the extension and support, it really makes life much easier.

    However, on my Kubuntu 10.04, non of the icons were being displayed under service menu, all were replaced by question marks, even though I had followed all the steps above, tried restart X, reboot etc afterwards. According to my understanding, system somehow appends '/usr/share/pixmaps/' prefix automatically to given path, so I basically had to chop off that part and leave 'tortoisehg/icons/svg/' or 'tortoisehg/icons/' only.

    Then, the next problem was with ico files. KDE wasn't displaying ico's and I didn't have png readily available. So, I had to extract them manually. 'icotool name.ico -x' does the job. Obviously one ico file may contain multiple png's, so you should pick up whichever suits you best.

    One last thing, on my system, I initially didn['t have a status.svg or status.png together with other icons.Then I found that file in one of the folders and converted it to png (initial svg format may not be suitable, I don't know). Finally I have all the icons visible.

    Once again, all these were just to display the icons, I didn't ever have any functionality problems.

    Thanks again,

    Oz.

  8. Nico BONARDELLE

    Hi everyone

    Thanks everybody the .desktop helped me getting back tortoise hg menus in Dolphin as I'm switching back from Nautilus, under Unity.

    Fyi, I had to change a few things to make it work on Ubuntu 12.04 (commands have changed : hgtk is now deprecated in favor of thg).

    Here is the content of the tortoisehg.desktop file : https://gist.github.com/3765877

    @Yuya Nishihara I've tested it successfully in .kde/share/kde4/services/ServiceMenus/ (there was a typo in your path, see http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus)

    I haven't tested icons as even standard actions' icons don't display for me (I don't care).

  9. Log in to comment