Bug 399611

Summary: Make use of prefix.sh; new option --start ?
Product: [Developer tools] kdesrc-build Reporter: Gregor Mi <codestruct>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: wishlist CC: ashark, nate
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gregor Mi 2018-10-10 13:20:34 UTC
Currently, I do the following to build and start a project:

~> kdesrc-build --include-dependencies keurocalc
    ...
            Installing.. succeeded (after 0 seconds)

    <<<  PACKAGES SUCCESSFULLY BUILT  >>>
    keurocalc
     
    Removing 1 out of 9 old log directories...
    :-)

Then I have to find out somehow where the CMakeFiles are, in this case here:

~/kde/build/extragear/utils/keurocalc

Then I type this to start KEuroCalc:

~> . ~/kde/build/extragear/utils/keurocalc/prefix.sh
~> keurocalc

Would it be within the scope of kdesrc-build to have an option --start <PACKAGENAME> that knows how to use prefix.sh and starts the default executable of the given package? Or at least print the location of the CMake files of a package when building it?
Comment 1 Michael Pyne 2018-10-13 22:48:16 UTC
Yes, that would make sense in kdesrc-build scope. I personally add the variables that would go in prefix.sh to my own desktop-wide environment, but that's not the only valid use case.
Comment 2 Andrew Shark 2023-11-22 09:18:17 UTC
We currently have `kdesrc-build --run`.