-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation of Clifm fails #1195
Comments
hi, thank you for this bug report, just fixed |
Hey, that was quick! Thanks @ivan-hc. One more thing. Clifm requires data files to function properly. These are in chmod a+x ./bin/$APP || exit 1
# LINK TO PATH
ln -s "/opt/$APP/bin/$APP" "/usr/local/bin/$APP"
# LINK DATA FILES
ln -s "/opt/$APP/files" "/usr/local/share/$APP" Also, the symlink should be added to the [ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > ../remove
printf '\n%s' "rm -f /usr/local/share/$APP" >> ../remove
printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove |
I think this should be ok, I have tested with bot AM and AppMan |
Does it at least check https://specifications.freedesktop.org/basedir-spec/latest/
Putting the files If the app checks |
@Samueru-sama I have done the test with both AM and AppMan, all it does is to symlink the "files" directory in /usr/local/share or ~/.local/share, as "clifm". No issues at all. To be honest, I tried in first to test it as an AppImage, because I don't like to involve different directories out of the ones in the scheme I adopt normally. Anyway, I've done an ecception for this, since I was unable to made it work standalone. If you have a better idea, you're wellcome.
People using more accounts on the same machine would have the same app working on different configurations. AppMan is custom, AM is system wide installed to be shared among the accounts. |
Alright, if it works when the files are in with that said application files in |
the only sources on how the app should be instlalled are in the fficial documentation, through |
It works out of the box now. Thank you guys for your work! I'll add |
@leo-arch I was so busy solving this problem that even when I checked the source was correct, I didn't realize you were the developer XD Thanks! |
You're welcome @ivan-hc! Keep up the good work. This is a great app. |
Done. |
With the latest commit (leo-arch/clifm@1218107) clifm explicitly checks $XDG_DATA_HOME and $XDG_DATA_DIRS when attempting to set the data directory. |
Thank you @leo-arch I have seen you have specified for x86_64... are there also other portable versions for other architectures? AM can support all of them. |
That's cool. But no, for the time being we provide precompiled binaries only for x86_64. |
OK, if you need it, let me know, I will create a dedicated script for each architecture you want to add. |
A few observations that may be useful:
|
I could put an alternative directory in case
impossible, you should drag the script into the terminal or open a terminal in the directory where you downloaded the script and start with
should work, as long as BASH is installed. My friend @Samueru-sama tried to convert various modules to POSIX, but there are some commands, like |
That would be nice (I do not use any DE, so that this directory is absent in my case).
A typo? Shouldn't it read
Sounds reasonable. Bash is pretty much anywhere, so that it's not much to ask. It would be nice to see this in BSD systems. |
I'm just working on this
the
for what I know, BASH has not a compatible license in BSD, but it can still be installed. |
Uhm... since "$SCRIPTDIR" (value @Samueru-sama any tip? |
Great! I suggest making this clear in the documentation (which at the moment says
The BSD licenses are quite permissive, so I think GPL does not conflict with them (though it's not the case the other way around). However, this is in fact not a problem. Bash is available on all BSD systems I've tried. |
sure, it is here https://github.com/ivan-hc/AM/blob/main/docs/guides-and-tutorials/template.md#how-to-test-an-installation-script it is the page where I explain how installation scripts can be created and how they work |
Ok, my bad. However, I was talking about |
same method is also used to install AppBundles, Toolpacks ( |
That's weird, when there is no such dir it should default to using
We do make heavy use of |
This is what I see: $ am -d clifm
/opt/am/modules/install.am: line 40: cd: /home/user/Desktop: No such file or directory.
|
Maybe we should do a @leo-arch would this be a solution? |
IMHO, it would work, yes. But, creating a directory unnecessarily would be, well, unnecessary. Btw, wouldn't it be better to default to the current directory instead of $HOME, provided |
Just made a PR that allows setting the dir but I can change it to default to |
maybe this should solve the issue
|
https://github.com/ivan-hc/AM/pull/1197/files 👀 this guy it telepathic |
Guys, whatever you decide, be it |
That's something for @ivan-hc because I don't know where that message is given lol |
this should fix the issue |
Hi,
tried to install clifm (as a regular user) and failed. Here's the output:
Files are properly installed in
/opt/clifm/
, but no symlink is created in/usr/local/bin/
, nor anywhere else (which(1) report nothing for clifm after installation).In case it matters,
am -f
lists clifm as installed.Possible solution
The offending lines of the install script seem to be these:
At this point of execution, the script is at
/opt/clifm
, whereas the executable file is in/opt/clifm/bin
. Changing the above lines to this should make it work:I am not sure, since I don't know how to install a program using a custom install script.
The text was updated successfully, but these errors were encountered: