[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-23 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #9 from Ivan Čukić  ---
Adding these to docs would make them official, and I don't want that.

Maybe somewhere I could find the place for it. We'll see. 

As for docs.kde.org... it is written in the 100BC, so it is quite outdated :)

We will need some new activities documentation.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-23 Thread Christian via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #8 from Christian  ---
Great, thanks. Would be great if these hints could be added to the
documentation. I tried to find the "official" documentation for Activities - is
this it?
https://docs.kde.org/stable5/en/kde-workspace/plasma-desktop/zooming-user-interface.html
It hardly explains anything...

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-22 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #7 from Ivan Čukić  ---
You can set specific application to show on a specific activity always (Alt+F3
-> More actions -> Special Window (or Application) Settings -> Size & Position
-> Activity) but it will not automatically switch to that activity when you
start the program.

And you can a program to run when the activity is started by placing its
.desktop file in
~/.local/share/kactivitymanagerd/activities/ID_OF_AN_ACTIVITY/started/

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-22 Thread Christian via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #6 from Christian  ---
Thank you Ivan! Wow that's a useful script. It would be nice if the properties
window of the program shortcuts would include a setting for that. But good to
know that it's possible to do this manually using a script.

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-22 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #5 from Ivan Čukić  ---
Sorry for the slow response.

> applications also have to implement the activity framework

The sad part is that it is not about the activities framework, but something
that existed in X11 for a decade, and so many applications ignore it.
Basically, the session protocol sends the application
save-state-and-close-event, and then tells it to start with the saved state the
next time.

If an application ignores this, it will have problems with activities.

You can create a small script that switches the activity, and starts the
desired application. Basically, this is not really a supported feature, but
more than a few people do it.

This will return IDs of activities you have on your system:
qdbus org.kde.ActivityManager /ActivityManager/Activities ListActivities

You can also open .config/kactivitymanagerdrc - you'll have the IDs along with
the names in the [activities] section.

Then you can create a script

#!/bin/bash
qdbus org.kde.ActivityManager /ActivityManager/Activities SetCurrentActivity
ID_OF_AN_ACTIVITY
application_you_want_to_start & >/dev/null &

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-11 Thread Christian via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #4 from Christian  ---
Hej Ivan!  Thank you, very much appreciated!  I didn't know that the
applications also have to implement the activity framework - I thought it would
work with all windowed applications... Oh well, software is always more
complicated than it seems to the casual user!

Another question that occurred to me - but I'm guessing that this is also
impossible in general, is: When I associate an activity to a window, and
somehow I've closed the window. Can I then make it so that, when I restart the
application, it also restarts that activity? (At least for some activities.)
But I am imagining that this would also have to be implemented by the
application and wouldn't work in general, right?
Is it possible to modify the KDE menu shortcuts (I mean the things I click on
to start programs) so that clicking on it also starts a particular activity?

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-11 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

Ivan Čukić  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Ivan Čukić  ---
gmusicbrowser seems not to implement x session management properly. (I've just
tested it)

I have also tested cantata and it shuts down and restarts properly on activity
stop/start.

This is unfortunately not something that we can force on applications.

> Option whether stopping an activity should close all the windows associated 
> with only this activity

All windows get the request to save their state and quit.

 > Possibility to associate programs with activities - e.g., when I start the
"Music"

This is possible until a few releases ago, it is just not exposed in the UI,
and not yet documented since I'm still tweaking the behaviour.

If you create ~/.local/share/kactivitymanagerd/activities/ACTIVITY_ID/started
directory, and put a .desktop file in it, that .desktop file will be executed
when activity is started.

I'm marking this as 'invalid' since we can not do anything to applications that
do not want to behave (in general, gnome apps do not care much about session
management), but we can continue the discussion.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-11 Thread Christian via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #2 from Christian  ---
I used "gmusicbrowser". It shows as a minimized window in the taskbar, and
there is also a symbol in the status bar.

I'm wondering if this is a good place to suggest additional functionality in
the settings of the Activities.  For me, the following two configuration
options would make it more useful:

1. Option whether stopping an activity should close all the windows associated
with only this activity. (A bit like when you log out and all the windows
close, but for just that activity.)
2. Possibility to associate programs with activities - e.g., when I start the
"Music" activity, the music player window should be opened even if it is not
running.

-- 
You are receiving this mail because:
You are watching all bug changes.


[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-10 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #1 from Ivan Čukić  ---
What music player do you use?

Does it stay in the task-bar, or it shows an icon in the system tray.

BTW, a bit unrelated, if you are using android or blackberry, you can install
kde connect which will automatically stop the music when you answer your phone.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kactivities] [Bug 359244] Activities: When I stop my "Music" activity, I want the music player to stop playing music

2016-02-10 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359244

Martin Gräßlin  changed:

   What|Removed |Added

   Assignee|kwin-bugs-n...@kde.org  |ivan.cu...@kde.org
  Component|activities  |general
Product|kwin|frameworks-kactivities
Version|5.5.3   |unspecified
 CC||plasma-b...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.