You are not logged in.

#1 2020-09-28 15:28:34

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Add firefox nightly to rofi

Hey
I have downloaded firefox nightly in my language, I want it to be available in rofi menu beside my stable firefox, I searched too much solutions but not clear to, one of them i did copy firefox app to /usr/bin directory and give chmod +x  to excutable file, rofi finds it but nothing happens when enter.
Any suggestion?

Last edited by jwtiyar (2020-09-28 15:29:17)

Offline

#2 2020-09-28 15:41:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Add firefox nightly to rofi

jwtiyar wrote:

rofi finds it but nothing happens when enter.

Launch rofi from a terminal emulator, then attempt to launch this firefox version and report any errors.

Can this firefox that you copied into /usr/bin be run from the terminal?  What is the actual filename that you created in /usr/bin for it?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-09-28 15:41:59

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,976
Website

Re: Add firefox nightly to rofi

jwtiyar wrote:

i did copy firefox app to /usr/bin directory and give chmod +x  to excutable file

That's not how you (should) install software on (Arch) Linux.
Package it correctly. If you want to avoid file conflicts, you might be required to build it into /opt.
I'd want to do that kind of work.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#4 2020-09-28 15:47:16

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

Trilby wrote:
jwtiyar wrote:

rofi finds it but nothing happens when enter.

Launch rofi from a terminal emulator, then attempt to launch this firefox version and report any errors.

Can this firefox that you copied into /usr/bin be run from the terminal?  What is the actual filename that you created in /usr/bin for it?

Thanks for reply
When i run it from terminal gives "Couldn't load XPCOM"
And its filename is firefox-bin .

Offline

#5 2020-09-29 10:30:03

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Add firefox nightly to rofi


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2020-09-29 10:32:16

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

Lone_Wolf wrote:

I know this, But ckb not available there.

Offline

#7 2020-09-29 10:51:53

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Add firefox nightly to rofi

I'm guessing you want something like https://www.archlinux.org/packages/extr … fresh-ckb/  providing Central Kurdish / Soranî / سۆرانی language but for firefox ?

The best way to do that on archlinux is to create a package for it.
One of the pkgbuilds for another firefox language pack should be suitable as a starting point .

Do you really need firefox-nightly or would repo firefox be ok also ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2020-09-29 11:55:22

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

Lone_Wolf wrote:

I'm guessing you want something like https://www.archlinux.org/packages/extr … fresh-ckb/  providing Central Kurdish / Soranî / سۆرانی language but for firefox ?

The best way to do that on archlinux is to create a package for it.
One of the pkgbuilds for another firefox language pack should be suitable as a starting point .

Do you really need firefox-nightly or would repo firefox be ok also ?

Yes you are right, the one that available for libreoffice is transalted by me, So Now iam working on firefox which ckb not available in stable, its only on nightly because i didn't finish it yet.
I want to see app interface, Every time i do translation they will add my translation to nightly version every 24 hours, I have to see the progress and check my transaltion also.

Offline

#9 2020-09-29 13:12:01

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Add firefox nightly to rofi

Hello, mozilla provides the nightly language pack as a browser extension on their ftp server. You can simply install that in your profile. You can also ask the AUR maintainer of firefox-nightly-i18n to include that language.

https://ftp.mozilla.org/pub/firefox/nig … 86_64/xpi/
https://ftp.mozilla.org/pub/firefox/nig … ngpack.xpi

Last edited by progandy (2020-09-29 13:13:45)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2020-09-29 15:18:54

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

progandy wrote:

Hello, mozilla provides the nightly language pack as a browser extension on their ftp server. You can simply install that in your profile. You can also ask the AUR maintainer of firefox-nightly-i18n to include that language.

I did add comment to add it, i dont know if he see or do it.

This doesn't make sense because firefox already have it integrated in tar.bz2 version. And this not compatible with stable version.

Offline

#11 2020-09-29 16:29:49

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Add firefox nightly to rofi

jwtiyar wrote:

This doesn't make sense because firefox already have it integrated in tar.bz2 version. And this not compatible with stable version.

You can install the non-international english version (firefox-nightly), and then install the language pack as an extension.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2020-09-29 16:53:51

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

progandy wrote:
jwtiyar wrote:

This doesn't make sense because firefox already have it integrated in tar.bz2 version. And this not compatible with stable version.

You can install the non-international english version (firefox-nightly), and then install the language pack as an extension.

I installed and added ckb package, but nothings changed just english language.
(The name of the addon is enlgish (us) language pack for nightly for ckb!!!)

Offline

#13 2020-09-29 17:06:00

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Add firefox nightly to rofi

jwtiyar wrote:

I installed and added ckb package, but nothings changed just english language.

https://support.mozilla.org/en-US/kb/us … r-language

(The name of the addon is enlgish (us) language pack for nightly for ckb!!!)

That means you'll have to fix that name somewhere.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#14 2020-09-29 17:19:21

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

progandy wrote:
jwtiyar wrote:

I installed and added ckb package, but nothings changed just english language.

https://support.mozilla.org/en-US/kb/us … r-language

I know this but it won't change.

back to my My original question how i can add the downloaded tar.bz2 version to rofi menu?

Offline

#15 2020-09-29 18:53:17

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: Add firefox nightly to rofi

back to my My original question how i can add the downloaded tar.bz2 version to rofi menu?

Try adding it to the rofi (d)run cache in -/cache

Offline

#16 2020-09-29 18:55:00

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

cirrus wrote:

back to my My original question how i can add the downloaded tar.bz2 version to rofi menu?

Try adding it to the rofi (d)run cache in -/cache

you mean .cache folder? How?

Offline

#17 2020-09-29 21:23:13

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Add firefox nightly to rofi

For one, don't copy the firefox nightly to /usr/bin. Put it in a subdirectory of /opt or /home. [1]

Then, add it to the $PATH environment variable to see it in the rofi "run" mode. [2]
For the "drun" / Desktop File mode you need to create a desktop file just like in [3]. More general info in [4]


[1]: https://wiki.mozilla.org/Nightly#Why_is … pile_it.3F
[2]: https://wiki.archlinux.org/index.php/En … _variables
[3]: https://blog.nightly.mozilla.org/2016/0 … nity-dock/
[4]: https://wiki.archlinux.org/index.php/Desktop_entries

Last edited by progandy (2020-09-29 21:23:42)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#18 2020-09-30 17:23:28

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

progandy wrote:

For one, don't copy the firefox nightly to /usr/bin. Put it in a subdirectory of /opt or /home. [1]

Then, add it to the $PATH environment variable to see it in the rofi "run" mode. [2]
For the "drun" / Desktop File mode you need to create a desktop file just like in [3]. More general info in [4]


[1]: https://wiki.mozilla.org/Nightly#Why_is … pile_it.3F
[2]: https://wiki.archlinux.org/index.php/En … _variables
[3]: https://blog.nightly.mozilla.org/2016/0 … nity-dock/
[4]: https://wiki.archlinux.org/index.php/Desktop_entries

Hello
I did added folder firefox-nightly to /home folder and wanted to add:

 
export PATH="${PATH}:/home/firefox-nightly"

And source ~/.bash_profile doesn't reload give this error:

jwtiyar@Arch-Jwtiyar ~> source ~/.bash_profile
~/.bash_profile (line 6): Unexpected end of string, quotes are not balanced
export PATH="${PATH}:/home/firefox-nightly

       ^
from sourcing file ~/.bash_profile
source: Error while reading file '/home/jwtiyar/.bash_profile'

Is that ture what i did or something else ?

Offline

#19 2020-09-30 17:26:27

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Add firefox nightly to rofi

~/.bash_profile (line 6): Unexpected end of string, quotes are not balanced
export PATH="${PATH}:/home/firefox-nightly

The error message shows no closing double quote.

Online

#20 2020-09-30 17:32:30

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: Add firefox nightly to rofi

loqs wrote:
~/.bash_profile (line 6): Unexpected end of string, quotes are not balanced
export PATH="${PATH}:/home/firefox-nightly

The error message shows no closing double quote.

fish not recognize it, what to do?

fish: Unknown command: '[[ -f ~/.bashrc ]]'
~/.bash_profile (line 4): 
[[ -f ~/.bashrc ]] && . ~/.bashrc
^
from sourcing file ~/.bash_profile

Offline

Board footer

Powered by FluxBB