BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, info for anyone working on the 'swami' (GUI helper for system configuration) package.
Here swami won't start. AFAIK it seems it searches what looks like an application.desktop file from another Linux OS I have installed (Q4OS/Debian). Here's the system specs and the error itself.
$ sudo swami
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.enlightenment.wm.service was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.enlightenment.wm.service was not provided by any .service files
Traceback (most recent call last):
File "/usr/bin/swami", line 177, in <module>
app = MainWin(launchArg)
File "/usr/bin/swami", line 74, in __init__
self.loadModules()
File "/usr/bin/swami", line 130, in loadModules
self.modules[imported] = imported.SwamiModule(self)
File "/usr/lib/python2.7/dist-packages/swami_startupapps/swami_startupapps.py", line 94, in __init__
with open(d) as desktopFile:
IOError: [Errno 2] No such file or directory: '/home/USER/.local/share/applications/kcm_lookswitcher_wrapper.desktop'
for what it's worth, i get those same two first lines (Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.enlightenment.wm.service was not provided by any .service files x2) when i start mine with sudo.
enigma9o7 swami is a control panel application/program in bodhi. i use it to change my keyboard layout and work with startup applications, but it has other uses as well. i get the same output from apt show. i'm not sure what that is about. this is what swami looks like:
Thank you cordx. I have got the exact same code as yours, but still
Code:
:~$ swami
Traceback (most recent call last):
File "/usr/bin/swami", line 177, in <module>
app = MainWin(launchArg)
File "/usr/bin/swami", line 74, in __init__
self.loadModules()
File "/usr/bin/swami", line 130, in loadModules
self.modules[imported] = imported.SwamiModule(self)
File "/usr/lib/python2.7/dist-packages/swami_startupapps/swami_startupapps.py", line 94, in __init__
with open(d) as desktopFile:
IOError: [Errno 2] No such file or directory: '/home/USER/.local/share/applications/kcm_lookswitcher_wrapper.desktop'
It says issue starts from this code
Code:
for d in desktopFiles:
with open(d) as desktopFile:
fileName = d.split("/")[-1]
icon = None
for line in desktopFile:
if line[:5] == "Name=":
name = line[5:][:-1]
if line[:5] == "Icon=":
icon = line[5:].strip()
in /usr/lib/python2.7/dist-packages/swami_startupapps/swami_startupapps.py .
Again, posting this for the dev (I'm a cmd line guy but I test the GUIs to be abble to speak with my relatives :-)
Swami should catch that error and continue, but it doesn't. Be easy to fix tho.
But anyways looks like kcm_lookswitcher_wrapper has been added to Moksha's startup but the app has been uninstalled or the desktop file removed and swami can't find it and crashes and burns at that point. To fix your system so swami works simply remove that entry from startup. Look in /.e/e/applications/startup/.order, if not there also look in the file startupcommands also located there.
For the record what version of Bodhi are you using?
Using Bodhi 5, please see first post for the applis versions. No 'kcm_wrapper_switcher' in $HOME/.e/e/. This is a Q4OS (Debian, see first post) tool, located in ~/.local/share/applications/ and is a broken symlink when seen from non-Q4OS OS. Other OSes are installed on this machine, with *some* shared user config. Maybe we pin pointed what causes the error on my system far enough to make that a super low probability to happen elsewhere?
EDIT:
moving this desktop file away allows swami to launch indeed.
Seems the culprit was me not cleaning the ~/.local/share/applications directory as often as I should :¬\
Last edited by kozaki; 12-08-2019 at 04:36 PM.
Reason: checking swami launches upon cleaning 'user applications' dir.
Using Bodhi 5, please see first post for the applis versions...
Sorry I was busy and merely skimmed the first few posts. Decided to post on the issue when I saw you say Again, posting this for the dev
I am not the developer of swami that would be Jeff, but I am a developer here so ...
From what you have indicated seems you are sharing your home directory (or at least parts of it) with other Linux installs, kinda risky behavior unless you know what you are doing. But anyway nothing wrong with doing that just be aware how stuff from other desktops is going to affect the desktop you are in.
Quote:
Originally Posted by kozaki
... Maybe we pin pointed what causes the error on my system far enough to make that a super low probability to happen elsewhere?...
Well the error message, swamis code and your comments above make it clear what has happened. Looking over swamis code there are alot of places where swami could crash and burn on a borked systems. A broken symlink is kinda a borked system to me. Regardless, a program, in theory, should handle 'bad input' gracefully. I am not going to go over swamis code and add error checks everywhere bad input could break it, but I will fix this particular error. It seems high probability enough to warrant a fix.
Therefore I updated swami in our repos and you can fix it by:
Code:
sudo apt update
sudo apt install swami-control
Note the name of the program is swami-control to avoid the name clash with the MIDI instrument editor app noted above.
Quote:
Originally Posted by kozaki
...moving this desktop file away allows swami to launch indeed...
Glad you have swami back to working. But you should be able to move the troublesome desktop file back if you do in fact need it. After updating swami as above swami startup apps should ignore it and any other broken symlinks located there. Swami will print a warning as in my test case:
Code:
Warning Startup Apps: Unable to open /home/ylee/.local/share/applications/link1.desktop
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.