LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 12-06-2019, 10:05 AM   #1
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Rep: Reputation: 20
swami won't start, shows this error


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.

- Bodhi linux 5
- kernel 4.9.0-6-686 i686 i686 GNU/Linux
- swami 2.0.0+svn389-5
- moksha 20191004bodhi30.3.1

Code:
$ 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'
 
Old 12-06-2019, 02:43 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
For fun I tried to replicate, but didn't have the tool you're trying to use, and the one in repos appears to be music related.

Code:
bodhi@VPCF115FM:~$ sudo swami
[sudo] password for bodhi:
sudo: swami: command not found
bodhi@VPCF115FM:~$ apt list swami
Listing... Done
swami/bionic 2.0.0+svn389-5 amd64
bodhi@VPCF115FM:~$ apt show swami
Package: swami
Version: 2.0.0+svn389-5
Priority: optional
Section: universe/sound
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 714 kB
Depends: libswami0 (= 2.0.0+svn389-5), libc6 (>= 2.14), libfftw3-single3 (>= 3.3.5), libfluidsynth1 (>= 1.1.6-4~), libglib2.0-0 (>= 2.37.3), libgnomecanvas2-0 (>= 2.11.1), libgtk2.0-0 (>= 2.12.0), libinstpatch-1.0-0 (>= 1.0.0~)
Recommends: jackd
Breaks: libswami0 (<= 2.0.0+svn389-1~)
Replaces: libswami0 (<= 2.0.0+svn389-1~)
Homepage: http://swami.sf.net
Download-Size: 283 kB
APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: MIDI instrument editor application
 Swami (Sampled Waveforms And Musical Instruments) is an application
 for editing and managing MIDI instruments, such as SoundFont files.
 A programming API is also provided for integration with other
 applications.
 
Old 12-06-2019, 06:16 PM   #3
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
my swami runs just fine (without sudo as well). here's a copy of what i have if you want to compare to yours.
 
Old 12-06-2019, 06:25 PM   #4
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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.
 
Old 12-07-2019, 01:24 PM   #5
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Original Poster
Rep: Reputation: 20
Oops, I'll check without sudo ASAP.
 
1 members found this post helpful.
Old 12-08-2019, 03:22 AM   #6
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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:
Click image for larger version

Name:	shot-2019-12-08_03-15-00.jpg
Views:	14
Size:	109.7 KB
ID:	32057
 
Old 12-08-2019, 09:10 AM   #7
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Original Poster
Rep: Reputation: 20
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 :-)
 
Old 12-08-2019, 10:55 AM   #8
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
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?
 
1 members found this post helpful.
Old 12-08-2019, 04:26 PM   #9
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Original Poster
Rep: Reputation: 20
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.
 
1 members found this post helpful.
Old 12-09-2019, 06:23 AM   #10
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Quote:
Originally Posted by kozaki View Post
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 View Post
... 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 View Post
...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
Anyway thanks for reporting this error.

Enjoy
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup Applications/services in Swami versus Settings Panel: when to use settings in which location? RonCam Bodhi 6 09-23-2018 12:18 AM
LXer: Swami Alpha Release with Theme and Date Modules LXer Syndicated Linux News 0 10-24-2015 09:20 AM
[SOLVED] ./network start shows error RTNETLINK answers: File exists Error adding address [ip] FlatBallFlyer Linux - Networking 4 09-27-2010 07:15 PM
Swami makefile.in error stratotak Linux - Software 1 10-17-2009 04:09 PM
thunderbird won't start but ps -ef shows it running zlya Linux - Software 7 10-05-2009 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration