tnarnold / wine-launcher-creator

Automatically exported from code.google.com/p/wine-launcher-creator
1 stars 2 forks source link

service menu for dolphin? #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
any chance to have a servicemenu for dolphin (kde4 default filemanager)?

Original issue reported on code.google.com by davide.m...@gmail.com on 16 Oct 2011 at 11:16

GoogleCodeExporter commented 9 years ago
Well, I don't have KDE installed, but I could look into it if you could point 
me at the right documentation. If you look at the code, it's just one script 
that accepts path to exe file (you can call it from command line). If you know 
how to add script to Dolphin menus, that would be very helpful...

Original comment by zza...@gmail.com on 16 Oct 2011 at 3:32

GoogleCodeExporter commented 9 years ago
http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus
i can help you if you want, please give me a sample command

Original comment by davide.m...@gmail.com on 16 Oct 2011 at 3:41

GoogleCodeExporter commented 9 years ago
You have command line usage for script at the ond of main page:
http://code.google.com/p/wine-launcher-creator/

Original comment by zza...@gmail.com on 16 Oct 2011 at 3:44

GoogleCodeExporter commented 9 years ago
wlcreator.py [path_to_exe_file [path_to_application_toplevel_directory]]
wlcreator.py myprogram.exe ~/.wine/drive_c/myprogram/

it's ok?

Original comment by davide.m...@gmail.com on 16 Oct 2011 at 3:53

GoogleCodeExporter commented 9 years ago
Well, it should be just (second parameter can be ignored)

wlcreator.py path/to/myprogram.exe

or maybe

wlcreator.py /full/path/to/myprogram.exe

I don't remember the details right now, but I think that relative path is OK...

Original comment by zza...@gmail.com on 16 Oct 2011 at 4:11

GoogleCodeExporter commented 9 years ago
well..i have an error
python wlcreator.py ~/.wine/drive_c/Programmi/WinRAR/WinRAR.exe
Traceback (most recent call last):
  File "wlcreator.py", line 465, in <module>
    main = MainWindow()
  File "wlcreator.py", line 267, in __init__
    self.loadConfig()
  File "wlcreator.py", line 406, in loadConfig
    path = check_output(["xdg-user-dir", "DESKTOP"])
  File "wlcreator.py", line 41, in check_output
    process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1202, in _execute_child
    raise child_exception
OSError: [Errno 2] File o directory non esistente (it means file or dir not 
found)

Original comment by davide.m...@gmail.com on 16 Oct 2011 at 4:17

GoogleCodeExporter commented 9 years ago
Hmmm... Do you have xdg-utils package installed? I'm using command xdg-user-dir 
from that package. It may be that I didn't include it in dependencies in deb 
file...

Original comment by zza...@gmail.com on 16 Oct 2011 at 4:30

GoogleCodeExporter commented 9 years ago
yes i have, but i'm not using ubuntu o similar. I'm using chakra-project, a 
archlinux derived, and this this distro does not ship xdg-user-dir with 
xdg-utils: it can be installed with "ccr -S xdg-user-dirs".
Now it's working!

So, tomorrow i will prepare the servicemenu

Original comment by davide.m...@gmail.com on 16 Oct 2011 at 4:38

GoogleCodeExporter commented 9 years ago
ok, this is the code!
[Desktop Entry]
Actions=CreateLauncher;
Icon=dialog-information
ServiceTypes=KonqPopupMenu/Plugin,application/x-ms-dos-executable
Type=Service
X-KDE-Priority=TopLevel
X-KDE-Submenu=Wine
TryExec=wlcreator.py

[Desktop Action CreateLauncher]
Name=Create Launcher
Icon=wine
Exec=wlcreator.py %u
Name[it]= Crea Launcher

Original comment by davide.m...@gmail.com on 17 Oct 2011 at 1:28

GoogleCodeExporter commented 9 years ago
Excellent! I'll try to include your Dolphin integration as soon as I can, but 
it won't be before weekend, I'm afraid, as I'm pretty busy now. I'll try to 
install KDE on my machine, and to test your code. Thanks again!

Original comment by zza...@gmail.com on 17 Oct 2011 at 10:26

GoogleCodeExporter commented 9 years ago
I have Ubuntu 11.10 64-bit and I get a wrong architecture when trying intall 
the deb file any help would be nice and no I will not switch to Ubuntu 32-bit 
because of my drivers will not work under 32-bit. :)

Original comment by thechris...@gmail.com on 16 Apr 2012 at 12:38

Attachments:

GoogleCodeExporter commented 9 years ago
I still didn't try this on 64-bit distro, but since it's only a Python script, 
I guess it should work. You could download tar.gz archive and copy wlcreator.py 
somewhere in your home directory, and then use Nautilus Actions Configuration 
Tool to add this script as nautilus action. Alternatively, you can download 
just the python script from:
http://code.google.com/p/wine-launcher-creator/source/browse/wlcreator.py

Original comment by zza...@gmail.com on 17 Apr 2012 at 3:20

GoogleCodeExporter commented 9 years ago
I downloaded the most recent version (in a tarball) and extracted it but I 
don't see anything in the extracted files to indicate the promised support for 
Dolphin/Konqueror (for KDE) context menu integration.  Is this project dead or 
abandoned?  I don't have Nautilus installed at all on my system since I use KDE 
instead of Gnome (Kubuntu 12.04 32 bit), and I don't really know how/where to 
manually create the files for Dolphin/Konqueror context menu items.  That said, 
it would be greatly appreciated if you could provide a .deb package for version 
1.04 (or newer) that adds the necessary entries for Dolphin/Konqueror.

Original comment by aeronyaa...@aol.com on 29 Jun 2012 at 1:22

GoogleCodeExporter commented 9 years ago
Project is not dead, it was me who got overwhelmed by my regular job and a few 
side activities for a few months now. Since I'm currently using Ubuntu 12.04, 
and I'll have free time next few months, I'll try to make a new version with 
KDE and Nautilus 3 integration. I'm sorry it takes this long, but I really 
didn't have the time to learn enough KDE internals to make it work.

Original comment by zza...@gmail.com on 29 Jun 2012 at 1:27

GoogleCodeExporter commented 9 years ago
I just uploaded version 1.0.5. There is a couple of changes:
    - Added Wine prefix setting and changed Exec part of the launcher to include it
    - Default icons path changed to ~/.local/share/icons/wlcreator/
    - gpl text in About dilaog converted to RichText
    - Added program icon - I used 'Wine' icon, as I'm no artist - contributions are welcome
    - Added various ways to install in Nautilus and Dolphin directly from GUI
    - Added .desktop files for Nautilus, Dolphin and system integration
    - Removed ImageMagick dependency from deb file
    - deb file is now for all architectures

If you have the time, please test this version, there are probably some bugs in 
it. I tested in KDE on Ubuntu, but I'm not sure will it work in another 
distributions. If it works, I'll make this issue fixed.

And, again, sorry for a very long delay for this functionality...

Original comment by zza...@gmail.com on 6 Jul 2012 at 9:43

GoogleCodeExporter commented 9 years ago
OK, since there was no complaints, I will change status to "Fixed".

Original comment by zza...@gmail.com on 3 Sep 2012 at 2:28