Comments (4)
Comment some lines on bleachbit.py
and bleachbit/Unix.py
seems fix it. Bleachbit can be launched.
bleachbit.py
# if 'posix' == os.name:
# if os.path.isdir('/usr/share/bleachbit'):
# # This path contains bleachbit/{C,G}LI.py . This section is
# # unnecessary if installing BleachBit in site-packages.
# sys.path.append('/usr/share/')
#
# # The two imports from bleachbit must come after sys.path.append(..)
# import bleachbit.Unix
# from bleachbit import _
#
# if (
# bleachbit.Unix.is_display_protocol_wayland_and_root_not_allowed()
# ):
# print(_('To run a GUI application on Wayland with root, allow access with this command:\n'
# 'xhost si:localuser:root\n'
# 'See more about xhost at https://docs.bleachbit.org/doc/frequently-asked-questions.html'))
# sys.exit(1)
bleachbit/Unix.py
# def is_display_protocol_wayland_and_root_not_allowed():
# try:
# is_wayland = bleachbit.Unix.is_unix_display_protocol_wayland()
# except Exception as e:
# logger.exception(e)
# return False
# return (
# is_wayland and
# os.environ['USER'] == 'root' and
# bleachbit.Unix.root_is_not_allowed_to_X_session()
# )
from bleachbit.
Using display manager doesn't fix the issue, apparently.
from bleachbit.
So, I try other alternative, I replace some lines in is_linux_display_protocol_wayland
function. It works apparently, I don't know much about python though.
def is_linux_display_protocol_wayland():
assert(sys.platform.startswith('linux'))
result = General.run_external(['echo', '$XDG_SESSION_TYPE'])
return 'wayland' in result[1].lower()
Edit : it works only when I run it using python bleachbit.py
.
from bleachbit.
Fixed and solved, turns out the older version (4.4.x) was still around at /usr/lib/python3.11/site-packages/bleachbit-4.4.2-py3.11.egg
. Deleting directory fixs.
from bleachbit.
Related Issues (20)
- Add a wildcard operator to the inclusion/exclusion lists [Feature Enhancement]
- MS Edge - Recently closed history not deleted HOT 1
- Bleachbit 4.6.0 error on Win 10 HOT 2
- theres a windows error 5 when im trying to run the program, Can someone please explain how to fix it? HOT 1
- journalctl is not cleaned HOT 5
- Debugging terminal, the directory is not empty
- Cannot clean browser history if another user is running browser HOT 3
- Need help.. anyone know why I can't install? HOT 1
- Bleachbit broke my charging light indicator.
- bleach bit load/run problem HOT 1
- Bleachbit default setting HOT 1
- Bleachbit use with another cleaner/optimizer HOT 1
- Bleachbit shows only boxes HOT 1
- Question regarding HSTS "cookies"
- Bleach bit deletes a keePassXC formating
- Can add .dotted files/directories to whitelist
- Blurry UI
- OK, I am trying to abide by the posting guidelines... HOT 1
- OK, I am trying to abide by the posting guidelines... HOT 1
- "The specified module could not be found." - It's back from the dead. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleachbit.