Skip to content
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

[scriptassist.pl] Move scripts to autorun directory when symlinks are not supported #760

Open
mataha opened this issue Feb 6, 2021 · 7 comments

Comments

@mataha
Copy link

mataha commented Feb 6, 2021

I have an irssi session on which symlinks are not supported.

Whenever I update my scripts via /scriptassist update all and restart my session later, those updated scripts are not ran automatically at startup. Trying to do this by hand doesn't work as well:

/scriptassist autorun adv_windowlist.pl
>> Unable to create autorun link

Obviously, what's happening under the hood is:

$ pwd
/home/users/mataha/.irssi/scripts
$ ln -s adv_windowlist.pl autorun
ln: failed to create symbolic link ‘autorun/adv_windowlist.pl’: Operation not supported

Right now I'm using an ad lib bash script to move (updated) scripts manually into autorun directory whenever I perform an update, but I feel this could be integrated into scriptassist itself.

@mataha mataha changed the title [scriptassist.pl] Move scripts to autorun manually when symlinks are not supported [scriptassist.pl] Move scripts to autorun directory when symlinks are not supported Feb 7, 2021
@ailin-nemui
Copy link
Contributor

which system does not support symlinks o_O?

@ailin-nemui
Copy link
Contributor

note, we are probably going to solve this in Irssi through /set script_autorun somehow

@mataha
Copy link
Author

mataha commented Feb 8, 2021

which system does not support symlinks o_O?

$ lsb_release -i
Distributor ID: Debian

That's not Debian's fault, though; the chief offender is:

$ df -T | grep --max-count=1 "$HOME" | tr -s ' ' | cut -d' ' -f2
cifs

@bw1
Copy link
Member

bw1 commented Feb 9, 2021

@vague666
Copy link
Member

https://github.com/irssi/scripts.irssi.org/raw/master/scripts/scriptsave.pl

That's horrible, there must be a better way

@bw1
Copy link
Member

bw1 commented Feb 10, 2021

@bw1
Copy link
Member

bw1 commented Mar 14, 2021

with a script in alpha state

scriptassist2

/run scriptassist2
/set scriptassist2_autorun_link off
/scriptassist2 autorun trackbar
...
$ echo "/script load scriptassist2.pl" >> .irssi/startup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants