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

Current path paramter for File Association

Tags: file association, system settings, parameter, parameters file association, system settings, parameter, parameters file association, system settings, parameter, parameters
(comma "," separated)
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
I want to open any folder throw open with by git-cola but it didn't work by default because it needs current path parameter. I tried to use "%f", "%1" and "%U" but they didn't work :-\

What's the parameter of current path in KDE?

Image

P.S. May you please guide me the rest of parameters in KDE
User avatar
google01103
Manager
Posts
6668
Karma
25
the %U and such are not KDE specific but from Freedesktop http://standards.freedesktop.org/deskto ... atest.html

did you try $PWD


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
google01103 wrote:the %U and such are not KDE specific but from Freedesktop http://standards.freedesktop.org/deskto ... atest.html

But I noticed that File Association uses them!

did you try $PWD

Didn't work :'(
User avatar
google01103
Manager
Posts
6668
Karma
25
should you be doing this in systemsettings - file associations -> inode -> directory -> add ?

you want to open a folder in Dolphin with git-cola?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
google01103 wrote:should you be doing this in systemsettings - file associations -> inode -> directory -> add ?

you want to open a folder in Dolphin with git-cola?

Man, I already added it, it doesn't work as I mentioned above because it needs current path parameter as shown in the screenshot.
User avatar
google01103
Manager
Posts
6668
Karma
25
did you try the git-cola mailing list?

no idea if it will work but what about changing the command to
Code: Select all
cd %u; git-cola %u


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
google01103 wrote:did you try the git-cola mailing list?

Nop, I thought this issue related to KDE because open with works fine in Cinnamon!

google01103 wrote:
Code: Select all
cd %u; git-cola %u

When I run it from terminal it worked fine but when I configured directory to be open by it (as mentioned it the sheceenshot above) it didn't work!
User avatar
google01103
Manager
Posts
6668
Karma
25
if you use advanced options -> run in terminal, do you get any useful feedback?

in Cinnamon you used %u for work path and it worked fine? my understanding is that .desktop files and it's variables are supposed to be standard (but that's my understanding)


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
google01103 wrote:if you use advanced options -> run in terminal, do you get any useful feedback?

Oops when I configured it to run interminal it worked!!!
Image

This partially fixed the issue but I don't want to see damn terminal window!

in Cinnamon you used %u for work path and it worked fine? my understanding is that .desktop files and it's variables are supposed to be standard (but that's my understanding)

In Cinnamon worked without passing any thing
User avatar
google01103
Manager
Posts
6668
Karma
25
So it seems it's not the missing "working path" but something else for it to have to be using "run in terminal?

I have one program (gnubg) that will only "run in terminal" and I have no idea why

maybe a new thread entitled "why program will only run when "run in terminal" is enabled" or such


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
Do you've any idea how to fix this issue in KDE?
User avatar
google01103
Manager
Posts
6668
Karma
25
none - that's why I suggested a new thread

if you always have a Konsole window open you can use the --new-tab option so that a new Konsole window doesn't open but then each run of git-cola will add another Konsole tab


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
google01103 wrote:none - that's why I suggested a new thread

if you always have a Konsole window open you can use the --new-tab option so that a new Konsole window doesn't open but then each run of git-cola will add another Konsole tab


not quite correct - the new tab will automatically close when you close the git-cola instance (at least in by test not using git-cola)


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
not quite correct - the new tab will automatically close when you close the git-cola instance (at least in by test not using git-cola)

I think I'll ask git-cola guys then I'll post the solution here. Any way if any one find the solution don't hesitate to post it here.

Thanks
User avatar
mbnoimi
Registered Member
Posts
216
Karma
0
OS
Thanks to David Aguilar he gave me the right solution:

command: git-cola --repo %u
working directory : %u
Image


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]