https://bugs.kde.org/show_bug.cgi?id=356225

--- Comment #349 from m...@eisgr.com ---
My apologies.  This pair were together, the second one being the
"maj_plasma_appletsrc.rb" file... and I intended to uncomment that call, like
so:

```
#!/bin/bash

maj_plasma_appletsrc.rb

kquitapp5 plasmashell
plasmashell #--shut-up
```
and
```
#!/usr/bin/ruby

config_file = "#{Dir.home}/.config/plasma-org.kde.plasma.desktop-appletsrc"

lignes = IO.readlines(config_file)

i = 0

lignes.each do |ligne|
  if ligne =~ /org.kde.panel/
    puts "Trouvé 'org.kde.panel' ligne #{i}"
    if lignes[i - 2] =~ /lastScreen/
      puts "Trouvé 'lastScreen' ligne #{i - 2} : #{lignes[i - 2]}"
      elem = lignes[i - 2].partition("=")
      if elem[2] != "0\n"
        lignes[i - 2] = "lastScreen=0\n"
        puts "Remplacement #{elem[0] + elem[1] + elem[2]} par #{lignes[i -
2]}"
      end
    else
      puts "Pas trouvé 'lastScreen' ligne #{i - 2} : #{lignes[i - 2]}"
    end
  end
  i = i + 1
end

File.open(config_file, "w") do |f|
  f.puts lignes
end
```

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

Reply via email to