Author Topic: A surplus of activities (fixed)  (Read 3645 times)

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: A surplus of activities
« Reply #15 on: September 02, 2012, 06:58:21 AM »
after adding

Quote
# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}

# fif 77e40d2d
bash: fif: command not found


did you try it as user?
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: A surplus of activities
« Reply #16 on: September 02, 2012, 07:00:30 AM »
Well I have four new activities this morning  :(


Code: [Select]
$ fif "New Activity"
./.kde4/share/config/activitymanagerrc:1c555384-a55e-4b92-adf6-eac336f3c818=New Activity
./.kde4/share/config/activitymanagerrc:5cabe699-1b20-443e-bb12-8811044a69c4=New Activity
./.kde4/share/config/activitymanagerrc:733b266a-952b-47df-b148-dba99cd8c62f=New Activity
./.kde4/share/config/activitymanagerrc:851a330f-f573-4c4c-be4d-a1e28cb168ac=New Activity
./.kde4/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4/share/config/plasma-desktop-appletsrc:activity=New Activity


:(


My ~/.kde4/share/config/kglobalshortcutsrc   file appears to be a right mess!

There are more than 400 entries like these two

Quote
[kactivitymanagerd]
_k_friendly_name=KDE Activity Manager
switch-to-activity-002630f0-295e-434b-92cd-a11750ab7de3=none,none,Switch to activity "New Activity"
switch-to-activity-00901aa8-a77f-435a-b73f-bfe03a103bcb=none,none,Switch to activity "New Activity"
« Last Edit: September 02, 2012, 07:06:32 AM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline luikki

  • Hero Member
  • *****
  • Posts: 1421
Re: A surplus of activities
« Reply #17 on: September 02, 2012, 07:09:28 AM »
what is this?  ??? ??? ???

Quote
@localhost ~]$ fif "New Activity"
./.kde4-new/share/config/kglobalshortcutsrc:switch-to-activity-cb498793-2cf6-4746-93b7-333d3460094d=none,none,Switch to activity "New Activity"
./.kde4-new/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4-new/share/config/activitymanagerrc:cb498793-2cf6-4746-93b7-333d3460094d=New Activity
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-10103c23-dc14-4b03-bffc-ea895ffd2a5d=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-13f73a38-828e-4021-bf9f-c305f2fa5d3e=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-4defe892-004d-4cf2-9c4f-0c5975fb7807=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-5ab0827c-edf6-4b81-93f4-5f165e6acdaf=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-5b8c7b4f-0ba8-4286-a27f-567077bad110=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-5d195096-dbde-4e08-be0a-6db1f69bd4f3=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-6d1302eb-9a23-42ab-8ddf-cff4f17bfd0e=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-8c4ca872-8089-47cf-bd08-4578299cd977=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-b0a98314-d635-4534-a371-6034d8658950=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-c5e4bed9-2122-4412-b504-ec245e2c7e18=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-cb498793-2cf6-4746-93b7-333d3460094d=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/kglobalshortcutsrc:switch-to-activity-cd5fbbff-7dcc-4095-9c10-49c875cbe46a=none,none,Switch to activity "New Activity"
./.kde4.bak/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4.bak/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4.bak/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4.bak/share/config/activitymanagerrc:cb498793-2cf6-4746-93b7-333d3460094d=New Activity
./Documents/activities:
Quote
As far as I could tell the New Activity only occurs after a cold boot.  Once it is removed, a restart does no create a new activity. So I checked now which files in .kde4/share/config were updated on a cold boot but not on a restart. These appeared to be the files: startupconfigfiles and startupconfig.  I check those files and they did not seem to be crucial, so I deleted them and to be sure I also deleted startupconfigkeys.


Quote
./Documents/activities:
Quote
As far as I could tell the New Activity only occurs after a cold boot.  Once it is removed, a restart does no create a new activity. So I checked now which files in .kde4/share/config were updated on a cold boot but not on a restart. These appeared to be the files: startupconfigfiles and startupconfig.  I check those files and they did not seem to be crucial, so I deleted them and to be sure I also deleted startupconfigkeys


does this belong here?
« Last Edit: September 02, 2012, 07:12:10 AM by luikki »

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: A surplus of activities
« Reply #18 on: September 02, 2012, 07:14:07 AM »
after adding

Quote
# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}

# fif 77e40d2d
bash: fif: command not found



you adde this to your ~/.bashrc, then saved the file, then started a new konsole (not a new sub-window), and the command was not found?

Start a new konsole, then enter the command bash, then a fif-search. MUST work  ;)

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: A surplus of activities
« Reply #19 on: September 02, 2012, 07:17:37 AM »
after adding

Quote
# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}

# fif 77e40d2d
bash: fif: command not found



you adde this to your ~/.bashrc, then saved the file, then started a new konsole (not a new sub-window), and the command was not found?

Start a new konsole, then enter the command bash, then a fif-search. MUST work  ;)

Not as root! ......  see my above post

MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline luikki

  • Hero Member
  • *****
  • Posts: 1421
Re: A surplus of activities
« Reply #20 on: September 02, 2012, 07:24:14 AM »
not as root it shows what i've posted in my previous post...

if i search for a specific file i get:

Quote
[luis@localhost ~]$ fif 77e40d2d
./.bash_history:fif 77e40d2d
[luis@localhost ~]$

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: A surplus of activities
« Reply #21 on: September 02, 2012, 07:30:06 AM »
after adding

Quote
# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}

# fif 77e40d2d
bash: fif: command not found



you adde this to your ~/.bashrc, then saved the file, then started a new konsole (not a new sub-window), and the command was not found?

Start a new konsole, then enter the command bash, then a fif-search. MUST work  ;)

Not as root! ......  see my above post



why not? Of course you must put fif in /root/.bashrc, then it works for root. Or just put it in /etc/skel/.bashrc so each new user will get it

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: A surplus of activities
« Reply #22 on: September 02, 2012, 07:47:09 AM »
after adding

Quote
# fif=Find in File (maik3531)
# e.g. to search for the word 'pencil' in all documents of a given
# directory open a konsole, cd to the directory, and run: fif "pencil"
fif() {
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}

# fif 77e40d2d
bash: fif: command not found



you adde this to your ~/.bashrc, then saved the file, then started a new konsole (not a new sub-window), and the command was not found?

Start a new konsole, then enter the command bash, then a fif-search. MUST work  ;)

Not as root! ......  see my above post



why not? Of course you must put fif in /root/.bashrc, then it works for root. Or just put it in /etc/skel/.bashrc so each new user will get it

If your instructions were followed it would not work as root!

Quote
you adde this to your ~/.bashrc

The failure post showed it being used as root!

MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline mellon

  • Full Member
  • ***
  • Posts: 215
Re: A surplus of activities
« Reply #23 on: September 02, 2012, 08:09:35 AM »
Added the fif to bashrc, but it does no seem to work on all folders.

fif "music"
yields e.g.
./.easytag/easytagrc:cddb_server_name_automatic_search2=freedb.musicbrainz.org
./.pySopCast/channel_guide.xml:Type:musica-film-notizie-sport

and fif activity
yields e.g.
./.luckyBackup/logs/ToDisk-extra0_to_disk-20120708093851.log:extra_d0/DownloadStore/AndroidApps/TitaniumBackup/nl.ns.android.activity-20120112-195644.properties

but fif "Activity" shows nothing

If I key in  find -type f -print0 | xargs -0 grep "New Activity" I get
./.kde4/share/config/kglobalshortcutsrc:switch-to-activity-9127546c-6d85-4968-9fd9-31e4d4aa909c=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-1b388d3e-5258-4d8a-86fe-9b22fe240853=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-411f42ac-4a18-4ef7-a913-b3f59c25f47c=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-4e588fb3-17f7-423b-a602-fc5195f87ff0=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-63769d5d-49fd-43fd-8dbc-5cc7b086ac85=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-7254d896-fe62-4fc0-9d3f-25164d8bf143=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-7a5020c6-0512-444a-8ac6-0606c2ca3221=none,none,Switch to activity "New Activity"
./.kde4/share/config/kglobalshortcutsrc~:switch-to-activity-a1f16efc-8f65-4bfb-b6dd-3c221237344a=none,none,Switch to activity "New Activity"
./.kde4/share/config/plasma-desktop-appletsrc:activity=New Activity
./.kde4/share/config/activitymanagerrc:9127546c-6d85-4968-9fd9-31e4d4aa909c=New Activity

This time I created the new activity by renaming startupconfigkeys to startupconfigkeys.old. No reboot required. Only logged out and in and got a New activity. It was visible in the activity bar. I logged out and in again it was no longer visible. It was still there though but inactive (red cross).
Please note that the time stamp on the startupconfig file and the startupconfigfiles was unchanged and 30 minutes old. The two files were not refreshed.

Mellon

Offline luikki

  • Hero Member
  • *****
  • Posts: 1421
Re: A surplus of activities
« Reply #24 on: September 02, 2012, 12:15:08 PM »
i know far too litle about linux to understand all this... :(

so, mellon, i keep wondering why after deleting startupconfigfiles startupconfig and startupconfigkeys at each boot or reboot it boots to desktop one and not two desktop two...

but, after following pinoc's advice
Quote
To clean out all those New Activities for a given user-account open .kde4/share/config/activitymanagerrc and delete all those lines ending in "=New Activity". Then save this file, logout/login, and all is ok.
To be consistent one could also clean out the other 2 files but it seems that cleaning .kde4/share/config/activitymanagerrc is sufficient already.
Do not delete .kde4/share/config/activitymanagerrc or your desktop will be
the boots/reboots are back to desktop two

i remember reading that kde always boots to desktop two and there is no way to change that... ???
well, deleting startupconfigfiles startupconfig and startupconfigkeys changes that behavior... ;D
how are "activities" related to this?


:

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: A surplus of activities
« Reply #25 on: September 02, 2012, 01:14:53 PM »
the "boot to desktop 1" (or 2, 3, or whichever) is a different story, you can specify this via wmctrl, see here
hope this helps,
-p.

Offline mellon

  • Full Member
  • ***
  • Posts: 215
Re: A surplus of activities
« Reply #26 on: September 02, 2012, 02:17:35 PM »

Quote
so, mellon, i keep wondering why after deleting startupconfigfiles startupconfig and startupconfigkeys at each boot or reboot it boots to desktop one and not two desktop two...

Well, Luikki, I have no idea. I gave up trying to figure that one out long ago. I have no need for desktop effects and those kind of things, let alone have multiple desktops each which may have one or more activities per desktop and even then some of those activities can act as a desktop or even a grouped desktop. I decided to keep things simple. In my setup of 1 desktop and 4 activities I get logged in (most of the time) to the activity I was in when I logged out. If I'm not it is just a turn on the mouse wheel to get me where I want to be.

Deletion of the startupconfigfiles and startupconfig (but not the startupconfigkeys file) file does not consistently eliminate the New Activity issue, but the number of occasions one appears has dropped to almost none.

Mellon

Offline luikki

  • Hero Member
  • *****
  • Posts: 1421
Re: A surplus of activities
« Reply #27 on: September 02, 2012, 02:21:47 PM »
Quote
the "boot to desktop 1" (or 2, 3, or whichever) is a different story, you can specify this via wmctrl, see here
hope this helps,
-p.

thanks pinoc. it worked... ;D

if you don't mind me asking: why isn't this the default setting?

Offline luikki

  • Hero Member
  • *****
  • Posts: 1421
Re: A surplus of activities
« Reply #28 on: September 02, 2012, 02:25:47 PM »
mellon,
Quote
Deletion of the startupconfigfiles and startupconfig (but not the startupconfigkeys file) file does not consistently eliminate the New Activity issue, but the number of occasions one appears has dropped to almost none.


after following your advice i get this:



Offline mellon

  • Full Member
  • ***
  • Posts: 215
Re: A surplus of activities
« Reply #29 on: September 02, 2012, 03:41:32 PM »

Yes , I can see you still got one. I do not; after several cold reboots. I can not explain it. I just observe and see the effects.

I note that we do have different setups. You have two desktops and I have one. I also have already 4 activities for my single desktop. I also use an activity bar. The files in our config folder will be different by their content.

There are a many things influencing the desktop, I guess. In my setup I have e.g. not checked the 'Different widgets for each Desktop' in Configure your desktop - Workspace section. If I tick it now, all my activities go black. If I switch it off then they are back to normal. I cannot explain why. I just describe what happens. That is the same with deletion of the startupconfigfiles file and startupconfig file. I do see a difference with respect to New Activities being created. I cannot explain it.  I also cannot explain why fif "Activity" gives me no result back, but using other words do provide results. See one of my previous posts.

I can see the logic from the post by Pinoc about the fact that logically these files may not have anything to do with the Desktop that appears on startup or the New Activity being created. But we both see an effect when we delete them.
By their very names I would consider it logical that these files hold everything that has to do with the startup of KDE and its configuration and that includes the preferred Desktop to show up and whether a new activity should be created or not (if ever that would be an option a user would wish to have). But what I find logical may not be logical at all. 

Well. time to put this under my pillow and have a good night sleep on it. The rest of the week it will be business as usual, so not much time for 'new activities' so to speak.

Mellon