q4wine-cli does not accept extra app arguments #78

Closed
brezerk opened this Issue Jul 7, 2016 · 10 comments

Projects

None yet

2 participants

@brezerk
Owner
brezerk commented Jul 7, 2016

Original message from @Svadkos at #69

Hello, is there any way to open file in wine program, not just open program? For example, if i want to open document with MSO Word from file manager dialog.

Well, actually i mean start file through icon that q4wine create.
/usr/bin/q4wine-cli -p "office" -i "Word" and than it just start new empty document, skipping all arguments that follow.

@brezerk brezerk added the Bug label Jul 7, 2016
@brezerk brezerk added this to the 1.3.1 milestone Jul 7, 2016
@brezerk brezerk self-assigned this Jul 7, 2016
@brezerk
Owner
brezerk commented Jul 7, 2016

Hi @Svadkos this commit 96e7093 fixes the issue, when all extra arguments passed to q4wine-cli was ignored.

Now they are by passed to the app correctly:

[ himera ] brezerk@pts/4:18  ~ $
> 07/08/16 00:37:35 EEST > /tmp/build-q4wine/src/q4wine-cli/q4wine-cli -p "Default" -d "system" -i "wordpad" "/home/brezerk/normalize.sh"
[ii] corelib::runWineBinary:  "/tmp/build-q4wine/src/q4wine-helper/q4wine-helper" ("--prefix", "Default", "--nice", "0", "--program-args", " /home/brezerk/normalize.sh", "--program-bin", "wordpad.exe", "--wrkdir", "/home/brezerk")  at:  "/home/brezerk"
Done

I have fixed *.desktop files export as well, now %f tag will be added at the end of Exec entity.

Just in case, if you need to fix any existing *desktop file manually, just add %f tag at the end of Exec entity.

Here you are the example:

[Desktop Entry]
Exec=/usr/local/bin/q4wine-cli -p "Default"  -d "system"  -i "wordpad"  %f
Icon=/usr/local/share/q4wine/icons/wordpad.svg
Type=Application
StartupNotify=true
GenericName=wordpad
Comment=Wine wordpad text editor
Name=wordpad
Path=

It will be nice if you play around latest git build to test it.
Let me know if you have any questions.

@Svadkos
Svadkos commented Jul 8, 2016

Seems like he trying to open document from working directory, but this document is located in ~/Documents.
screenshot_20160708
Maybe then create some file associations as wine does, because as far as i remember, they worked? But the only ones i might create or choose myself, not all of them.

I have fixed *.desktop files export as well

And to me now it is stopped working, lol. Q4wine create file in ~/.config/menus/applications-merged/, but ~/.local/share/applications/ stays empty.

@Svadkos
Svadkos commented Jul 8, 2016 edited

And to me now it is stopped working, lol. Q4wine create file in ~/.config/menus/applications-merged/, but ~/.local/share/applications/ stays empty.

Test one more time on stable q4wine and still ~/.local/share/applications/ stays empty, hm.

@brezerk
Owner
brezerk commented Jul 9, 2016

Hi @Svadkos,

Seems like he trying to open document from working directory, but this document is located in ~/Documents.

not sure if it related to q4wine.

both:
/tmp/build-q4wine/src/q4wine-cli/q4wine-cli -p "Default" -d "system" -i "wordpad" "/home/brezerk/Documents/normalize.sh
and
/tmp/build-q4wine/src/q4wine-cli/q4wine-cli -p "Default" -d "system" -i "wordpad" "~/Documents/normalize.sh

works fine for build in wordpad app for me.

and still ~/.local/share/applications/ stays empty

Yes, q4wine does not populate ~/.local/share/applications/

@Svadkos
Svadkos commented Jul 11, 2016 edited

not sure if it related to q4wine.

You right, in new prefix it began to work.

Yes, q4wine does not populate ~/.local/share/applications/

Well, i'm pretty sure that it did before. And if i'm wrong why q4wine create file in ~/.config/menus/applications-merged/ with structure of icons?

@brezerk
Owner
brezerk commented Jul 12, 2016

Hi @Svadkos

why q4wine create file in ~/.config/menus/applications-merged/ with structure of icons?

It allows your DM to build q4wine's app menu structure:

screenshot_20160712_220453
screenshot_20160712_220510
screenshot_20160712_220528
screenshot_20160712_220551
screenshot_20160712_220741

@brezerk
Owner
brezerk commented Jul 12, 2016 edited

Well, i'm pretty sure that it did before.

Nope :) afik wine itself is responsible for creating files associations:

[ himera ] brezerk@pts/0:1  ~ $
> 07/12/16 22:09:07 EEST > ls ~/.local/share/applications 
drwxr-xr-x  4 brezerk brezerk 4096 Jul  8 00:47 .
drwxr-xr-x 30 brezerk brezerk 4096 Jul 10 13:07 ..
-rw-------  1 brezerk brezerk  153 May 14 12:51 mimeapps.list
-rw-r--r--  1 brezerk brezerk  719 May  2 19:30 mimeinfo.cache
-rw-r--r--  1 brezerk brezerk  205 May  1 22:25 wine-extension-chm.desktop
-rw-r--r--  1 brezerk brezerk  212 May  1 22:25 wine-extension-gif.desktop
-rw-r--r--  1 brezerk brezerk  207 May  1 22:25 wine-extension-hlp.desktop
-rw-r--r--  1 brezerk brezerk  205 May  1 22:25 wine-extension-htm.desktop
-rw-r--r--  1 brezerk brezerk  219 May  1 22:26 wine-extension-ini.desktop
-rw-r--r--  1 brezerk brezerk  215 May  1 22:26 wine-extension-jfif.desktop
-rw-r--r--  1 brezerk brezerk  214 May  1 22:26 wine-extension-jpe.desktop
-rw-r--r--  1 brezerk brezerk  228 May  1 22:26 wine-extension-msp.desktop
-rw-r--r--  1 brezerk brezerk  212 May  1 22:26 wine-extension-png.desktop
-rw-r--r--  1 brezerk brezerk  213 May  2 19:30 wine-extension-rtf.desktop
-rw-r--r--  1 brezerk brezerk  197 May  1 22:26 wine-extension-txt.desktop
-rw-r--r--  1 brezerk brezerk  220 May  1 22:26 wine-extension-url.desktop
-rw-r--r--  1 brezerk brezerk  210 May  1 22:26 wine-extension-vbs.desktop
-rw-r--r--  1 brezerk brezerk  208 May  1 22:26 wine-extension-wri.desktop
-rw-r--r--  1 brezerk brezerk  210 May  1 22:26 wine-extension-xml.desktop

but q4wine is not really aware of any of them.

@brezerk
Owner
brezerk commented Jul 19, 2016

hi @Svadkos anything else needs to be fixed in this scope? can we close this issue?

@Svadkos
Svadkos commented Jul 21, 2016 edited

Sorry, couldn't answer before.

It allows your DM to build q4wine's app menu structure:

I see, maybe i broke something, or it's kde bug. Before i have exactly the same menu.
Now it's just empty structure in menu editor.
screenshot_20160721_155938

Nope :) afik wine itself is responsible for creating files associations:

I know, and don't like it, too much unnecessary trash, so i turn it off, or remove.

anything else needs to be fixed in this scope? can we close this issue?

In this scope, i think nothing, beside associations. But if you think that's a bad idea, so be it, i still can create them myself through DM.

@brezerk
Owner
brezerk commented Jul 21, 2016

ic. Well. It is up to you: if you think it will be good idea to have ability to create files association via q4wine's menu: feel free to create an separate ticket to discuss this feature.

I will close this ticket.

Thanks for the bug report, re open if needed.

@brezerk brezerk closed this Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment