dCore Import Debian Packages to Mountable SCE extensions > dCore X86
Cannot start application from Ondemand entry
sm8ps:
I cannot get my head around the following problem. Please help my poor soul!
I want to load the extension owncloud-client.list from the Ondemand menu. It dependes on X.list and wireless.list. The latter contains the packages network-manager and nm-applet which should not only be loaded but started so that I can run the Owncloud client right away.
For that matter I have created the following Ondemand entries; both executable files.
--- Code: ---/tce/ondemand/Network-Manager:
#!/bin/sh
ondemand -e wireless.list
sudo /usr/local/postinst/libglib2.0-0 trigger && sudo gtk-update-icon-cache-3.0 -f /usr/share/icons/hicolor
sudo service network-manager start
sudo /usr/bin/nm-applet &
--- End code ---
--- Code: ---/tce/ondemand/OwnCloud
#!/bin/sh
/tce/ondemand/Network-Manager
ondemand -e owncloud-client.list
owncloud &
--- End code ---
Calling Network-Manager from the Ondemand menu works well. However, calling OwnCloud does not work. It does execute Network-Manager and gives a functional NM-applet in LXPanel but the Owncloud client is not started. When executing from the terminal via ''sh -x /tce/ondemand/OwnCloud'' I see "/tce/ondemand/OwnCloud: line 1: owncloud: not found". Indeed, ''which owncloud'' produces an empty result. So it seems that the command ''ondemand -e owncloud-client.list'' does not do what it should, namely loading the extension.
Issueing all commands from the terminal however does work as expected. Can anybody explain the difference in behavior? I have tried replacing ''ondemand'' by ''sce-load'' and adding some 'sleep 1' commands to no avail.
jls:
Hi
Strange tce is in root
sm8ps:
--- Quote from: jls on September 27, 2017, 04:28:39 PM ---Strange tce is in root
--- End quote ---
It isn't actually; I just put a symlink there. AFAICT that does not influence the behavior. Thanks for closely double-checking anyways!
sm8ps:
This is getting really weird! I have done some trouble shooting and find the following:
The extension "owncloud-client.list" is defined by the following list:
--- Code: ---ca-certificates
owncloud-client
owncloud-client-l10n
--- End code ---
The packages are taken from a repo listed in a file under '/opt/debextra/' containing
--- Code: ---http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /
--- End code ---
The extension has the following dependencies
--- Code: ---X.list
wireless.list
--- End code ---
defined as follows
--- Code: ---/tce/sce/X.list.sce.lst:
pm-utils
graphics-4.2.9-tinycore
xorg-intel
arandr
openbox
lxpanel
--- End code ---
--- Code: ---/tce/sce/wireless.list.sce.lst:
wireless-4.2.9-tinycore
wireless
gnome-keyring
network-manager
network-manager-gnome
--- End code ---
Running ''sce-load owncloud-client.list'' does not produce an executable ''owncloud'' as expected. There is, however, a file '/usr/bin/owncloud'! Following the symlinks by copying and pasting the filenames gives the following chain resulting in a dead-end:
--- Code: ---sm@aa1:/tmp$ ls -l /usr/bin/owncloud
lrwxrwxrwx 1 root root 35 Sep 29 10:46 /usr/bin/owncloud -> /opt/ownCloud/ownCloud/bin/owncloud
sm@aa1:/tmp$ ls -l /opt/ownCloud/ownCloud/bin/owncloud
lrwxrwxrwx 1 root staff 66 Sep 25 21:55 /opt/ownCloud/ownCloud/bin/owncloud -> /tmp/tcloop/owncloud-client.lst/opt/ownCloud/ownCloud/bin/owncloud
sm@aa1:/tmp$ ls -l /tmp/tcloop/owncloud-client.lst/opt/ownCloud/ownCloud/bin/owncloud
ls: cannot access '/tmp/tcloop/owncloud-client.lst/opt/ownCloud/ownCloud/bin/owncloud': No such file or directory
--- End code ---
Here comes the weird part:
--- Code: ---ls -l /tmp/tcloop/owncloud-client.list/opt/ownCloud/ownCloud/bin/owncloud
-rwxr-xr-x 1 root root 2194976 Sep 5 20:50 /tmp/tcloop/owncloud-client.list/opt/ownCloud/ownCloud/bin/owncloud
--- End code ---
Yes, this is verbatim the same filename as above, this time typed by hand (using tab-completion)! So dCore must somehow have produced a non-valid symlink. How can that be? Is there a way to check the symlinks?
For testing, I imported the extension owncloud-client as stand-alone, depending on the same extensions X.list and wireless.list. This time, the loaded extension does produce the executable 'owncloud' under '/usr/bin/' as expected. So the above behavior seems to be related to the presence of a list file. I checked the file for dangling spaces or empty lines at the end but there is no such thing.
Jason W:
Are these ondemand entries ones you created rather than creating with "sce-import -o"?
Navigation
[0] Message Index
[#] Next page
Go to full version